Signedness-Agnostic Program Analysis: Precise Integer Bounds for Low-Level Code
Abstract
Many compilers target common back-ends, thereby avoiding the need to implement the same analyses for many different source languages. This has led to interest in static analysis of LLVM code. In LLVM (and similar languages) most signedness information associated with variables has been compiled away. Current analyses of LLVM code tend to assume that either all values are signed or all are unsigned (except where the code specifies the signedness). We show how program analysis can simultaneously consider each bit-string to be both signed and unsigned, thus improving precision, and we implement the idea for the specific case of integer bounds analysis. Experimental evaluation shows that this provides higher precision at little extra cost. Our approach turns out to be beneficial even when all signedness information is available, such as when analysing C or Java code.
BibTeX
@inproceedings{navas2012signedness,
author = {Jorge A. Navas and Peter Schachte and Harald Søndergaard and Peter J. Stuckey},
title = {{Signedness-Agnostic Program Analysis: Precise Integer Bounds for Low-Level Code}},
booktitle = {APLAS},
year = {2012},
doi = {10.1007/978-3-642-35182-2\_9},
}Ask Althea to put this paper to the test.
Loading related content...