Feedback-driven dynamic invariant discovery
Lingming Zhang, Guowei Yang, Neha Rungta et al. · International Symposium on Software Testing and Analysis · 2014
Program invariants can help software developers identify program properties that must be preserved as the software evolves, however, formulating correct invariants can be challenging. In this work, we introduce iDiscovery, a technique which leverages symbolic execution to improve the quality of dynamically discovered invariants computed by Daikon. Candidate invariants generated by Daikon are synthesized into assertions and instrumented onto the program. The instrumented code is executed symbolically to generate new test cases that are fed back to Daikon to help further refine the set of candidate invariants. This feedback loop is executed until a fix-point is reached. To mitigate the cost of symbolic execution, we present optimizations to prune the symbolic state space and to reduce the complexity of the generated path conditions. We also leverage recent advances in constraint solution reuse techniques to avoid computing results for the same constraints across iterations. Experimental results show that iDiscovery converges to a set of higher quality invariants compared to the initial set of candidate invariants in a small number of iterations.
Cited by 43 works. doi:10.1145/2610384.2610389 Open-access PDF
Authors
References
- Abstract interpretation
- Symbolic execution and program testing
- KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs
- Extended static checking for Java
- Logical analysis of programs
- Tracking down software bugs using automatic anomaly detection
- The synthesis of loop predicates
- The Daikon system for dynamic detection of likely invariants
- Houdini, an Annotation Assistant for ESC/Java
- Automatic generation of invariants and intermediate assertions