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> &middot; <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