TitleSelecting, refining, and evaluating predicates for program analysis
Publication TypeMiscellaneous
Year of Publication2003
AuthorsDodoo N, Lin L, Ernst MD
Date or Month PublishedJuly 21,
AbstractThis research proposes and evaluates techniques for selecting predicates for conditional program properties\,–-\,that is, implications such as $p \Rightarrow q$ whose consequent must be true whenever the predicate is true. Conditional properties are prevalent in recursive data structures, which behave differently in their base and recursive cases, in programs that contain branches, in programs that fail only on some inputs, and in many other situations. The experimental context of the research is dynamic detection of likely program invariants, but the ideas are applicable to other domains. \par Trying every possible predicate for conditional properties is computationally infeasible and yields too many undesirable properties. This paper compares four policies for selecting predicates: procedure return analysis, code conditionals, clustering, and random selection. It also shows how to improve predicates via iterated analysis. An experimental evaluation demonstrates that the techniques improve performance on two tasks: statically proving the absence of run-time errors with a theorem-prover, and separating faulty from correct executions of erroneous programs.
Downloadshttps://homes.cs.washington.edu/~mernst/pubs/predicates-tr914.pdf PDF
Citation KeyDodooLE2003:TR