Automatic Abstraction for Congruences. King, A. & Søndergaard, H. In Barthe, G. & Hermenegildo, M., editors, Verification, Model Checking and Abstract Interpretation, volume 5944, of Lecture Notes in Computer Science, pages 197–213, 2010. Springer. doi abstract bibtex One approach to verifying bit-twiddling algorithms is to derive invariants between the bits that constitute the variables of a program. Such invariants can often be described with systems of congruences where in each equation c · x = d mod m, m is a power of two, c is a vector of integer coefficients, and x is a vector of propositional variables (bits). Because of the low-level nature of these invariants and the large number of bits that are involved, it is important that the transfer functions can be derived automatically. We address this problem, showing how an analysis for bit-level congruence relationships can be decoupled into two parts: (1) a SAT-based abstraction (compilation) step which can be automated, and (2) an interpretation step that requires no SAT-solving. We exploit triangular matrix forms to derive transfer functions efficiently, even in the presence of large numbers of bits. Finally we propose program transformations that improve the analysis results.
@Inproceedings{Kin-Son_VMCAI10,
author = {Andy King and
Harald S{\o}ndergaard},
title = {Automatic Abstraction for Congruences},
editor = {G. Barthe and M. Hermenegildo},
booktitle = {Verification, Model Checking and Abstract Interpretation},
series = {Lecture Notes in Computer Science},
volume = {5944},
pages = {197--213},
publisher = {Springer},
year = {2010},
doi = {10.1007/978-3-642-11319-2_16},
abstract = {One approach to verifying bit-twiddling algorithms is to derive
invariants between the bits that constitute the variables of a
program. Such invariants can often be described with systems
of congruences where in each equation
<b>c</b> · <b>x</b> = <it>d</it> mod <it>m</it>,
<it>m</it> is a power of two, <b>c</b> is a vector of integer
coefficients, and <b>x</b> is a vector of propositional
variables (bits). Because of the low-level nature of these
invariants and the large number of bits that are involved, it
is important that the transfer functions can be derived
automatically. We address this problem, showing how an analysis
for bit-level congruence relationships can be decoupled into
two parts: (1) a SAT-based abstraction (compilation) step which
can be automated, and (2) an interpretation step that requires
no SAT-solving. We exploit triangular matrix forms to derive
transfer functions efficiently, even in the presence of large
numbers of bits. Finally we propose program transformations
that improve the analysis results.},
keywords = {Congruence analysis, Abstract interpretation, Abstract domains, Boolean logic},
}
Downloads: 0
{"_id":"Dh8hBoou7yDA2FvJP","bibbaseid":"king-sndergaard-automaticabstractionforcongruences-2010","author_short":["King, A.","Søndergaard, H."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["Andy"],"propositions":[],"lastnames":["King"],"suffixes":[]},{"firstnames":["Harald"],"propositions":[],"lastnames":["Søndergaard"],"suffixes":[]}],"title":"Automatic Abstraction for Congruences","editor":[{"firstnames":["G."],"propositions":[],"lastnames":["Barthe"],"suffixes":[]},{"firstnames":["M."],"propositions":[],"lastnames":["Hermenegildo"],"suffixes":[]}],"booktitle":"Verification, Model Checking and Abstract Interpretation","series":"Lecture Notes in Computer Science","volume":"5944","pages":"197–213","publisher":"Springer","year":"2010","doi":"10.1007/978-3-642-11319-2_16","abstract":"One approach to verifying bit-twiddling algorithms is to derive invariants between the bits that constitute the variables of a program. Such invariants can often be described with systems of congruences where in each equation <b>c</b> · <b>x</b> = <it>d</it> mod <it>m</it>, <it>m</it> is a power of two, <b>c</b> is a vector of integer coefficients, and <b>x</b> is a vector of propositional variables (bits). Because of the low-level nature of these invariants and the large number of bits that are involved, it is important that the transfer functions can be derived automatically. We address this problem, showing how an analysis for bit-level congruence relationships can be decoupled into two parts: (1) a SAT-based abstraction (compilation) step which can be automated, and (2) an interpretation step that requires no SAT-solving. We exploit triangular matrix forms to derive transfer functions efficiently, even in the presence of large numbers of bits. Finally we propose program transformations that improve the analysis results.","keywords":"Congruence analysis, Abstract interpretation, Abstract domains, Boolean logic","bibtex":"@Inproceedings{Kin-Son_VMCAI10,\n author = {Andy King and \n\t\tHarald S{\\o}ndergaard},\n title = {Automatic Abstraction for Congruences},\n editor = {G. Barthe and M. Hermenegildo},\n booktitle = {Verification, Model Checking and Abstract Interpretation},\n series = {Lecture Notes in Computer Science},\n volume = {5944},\n pages = {197--213},\n publisher = {Springer},\n year = {2010},\n doi = {10.1007/978-3-642-11319-2_16},\n abstract = {One approach to verifying bit-twiddling algorithms is to derive \n\t\tinvariants between the bits that constitute the variables of a \n\t\tprogram. Such invariants can often be described with systems\n\t\tof congruences where in each equation \n\t\t<b>c</b> · <b>x</b> = <it>d</it> mod <it>m</it>, \n\t\t<it>m</it> is a power of two, <b>c</b> is a vector of integer \n\t\tcoefficients, and <b>x</b> is a vector of propositional \n\t\tvariables (bits). Because of the low-level nature of these \n\t\tinvariants and the large number of bits that are involved, it \n\t\tis important that the transfer functions can be derived \n\t\tautomatically. We address this problem, showing how an analysis\n\t\tfor bit-level congruence relationships can be decoupled into \n\t\ttwo parts: (1) a SAT-based abstraction (compilation) step which\n\t\tcan be automated, and (2) an interpretation step that requires \n\t\tno SAT-solving. We exploit triangular matrix forms to derive \n\t\ttransfer functions efficiently, even in the presence of large \n\t\tnumbers of bits. Finally we propose program transformations \n\t\tthat improve the analysis results.},\n keywords = {Congruence analysis, Abstract interpretation, Abstract domains, Boolean logic},\n}\n\n","author_short":["King, A.","Søndergaard, H."],"editor_short":["Barthe, G.","Hermenegildo, M."],"key":"Kin-Son_VMCAI10","id":"Kin-Son_VMCAI10","bibbaseid":"king-sndergaard-automaticabstractionforcongruences-2010","role":"author","urls":{},"keyword":["Congruence analysis","Abstract interpretation","Abstract domains","Boolean logic"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"inproceedings","biburl":"https://people.eng.unimelb.edu.au/harald/bibbase.bib","dataSources":["yWvm3kzg5vKQAPLm7","ofmsZryxNDBSpE7j5","9aC4cxLD8D6oJ3FLN","wpkuJrZJJtqra3FbL","W7ih7WyQivP4EDh83","BNGFBQQncqevukxoe","q5pWX4XZgAS4TQBof","yb3uN577XrYa7qf57","9jmvjAEoFta6emcgS","XqcrNTrCCBr9mSd37"],"keywords":["congruence analysis","abstract interpretation","abstract domains","boolean logic"],"search_terms":["automatic","abstraction","congruences","king","søndergaard"],"title":"Automatic Abstraction for Congruences","year":2010}