ACM Home Page
Please provide us with feedback. Feedback
Discovering affine equalities using random interpretation
Full text PdfPdf (309 KB)
Source ACM SIGPLAN Notices archive
Volume 38 ,  Issue 1  (January 2003) table of contents
Pages: 74 - 84  
Year of Publication: 2003
ISSN:0362-1340
Also published in ...
Authors
Sumit Gulwani  University of California, Berkeley, CA
George C. Necula  University of California, Berkeley, CA
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 32,   Citation Count: 10
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/640128.604138
What is a DOI?

ABSTRACT

We present a new polynomial-time randomized algorithm for discovering affine equalities involving variables in a program. The key idea of the algorithm is to execute a code fragment on a few random inputs, but in such a way that all paths are covered on each run. This makes it possible to rule out invalid relationships even with very few runs.The algorithm is based on two main techniques. First, both branches of a conditional are executed on each run and at joint points we perform an affine combination of the joining states. Secondly, in the branches of an equality conditional we adjust the data values on the fly to reflect the truth value of the guarding boolean expression. This increases the number of affine equalities that the analysis discovers.The algorithm is simpler to implement than alternative deterministic versions, has better computational complexity, and has an extremely small probability of error for even a small number of runs. This algorithm is an example of how randomization can provide a trade-off between the cost and complexity of program analysis, and a small probability of unsoundness.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
A. Aiken, M. Fähndrich, and Z. Su. Detecting races in relay ladder logic programs. International Journal on Software Tools for Technology Transfer, 3(1):93--105, 2000.
2
 
3
M. Blum, A. Chandra, and M. Wegman. Equivalence of free boolean graphs can be decided probabilistically in polynomial time. Information Processing Letters, 10:80--82, 1980.
4
5
 
6
7
 
8
D. Hamlet. Random testing. In J. Marciniak, editor, Encyclopedia of Software Engineering, pages 970--978. Wiley, New York, 1994.
 
9
M. Karr. Affine relationships among variables of a program. In Acta Informatica, pages 133--151. Springer, 1976.
10
 
11
12
13
 
14
M. Wegman, V. C. Sreedhar, and R. Bodik. Probabilistic value numbering. Unpublished manuscript, 2001.

CITED BY  10

Collaborative Colleagues:
Sumit Gulwani: colleagues
George C. Necula: colleagues