Speeding up the constraint-based method in difference logic
Document typeConference report
Rights accessOpen Access
Over the years the constraint-based method has been successfully applied to a wide range of problems in program analysis, from invariant generation to termination and non-termination proving. Quite often the semantics of the program under study as well as the properties to be generated belong to difference logic, i.e., the fragment of linear arithmetic where atoms are inequalities of the form u v = k. However, so far constraint-based techniques have not exploited this fact: in general, Farkas’ Lemma is used to produce the constraints over template unknowns, which leads to non-linear SMT problems. Based on classical results of graph theory, in this paper we propose new encodings for generating these constraints when program semantics and templates belong to difference logic. Thanks to this approach, instead of a heavyweight non-linear arithmetic solver, a much cheaper SMT solver for difference logic or linear integer arithmetic can be employed for solving the resulting constraints. We present encouraging experimental results that show the high impact of the proposed techniques on the performance of the VeryMax verification system
"The final publication is available at http://link.springer.com/chapter/10.1007%2F978-3-319-40970-2_18"
CitationCandeago, L., Larraz, D., Oliveras, A., Rodriguez, E., Rubio, A. Speeding up the constraint-based method in difference logic. A: International Conference on Theory and Applications of Satisfiability Testing. "Theory and Applications of Satisfiability Testing – SAT 2016, 19th International Conference, Bordeaux, France, July 5-8, 2016, Proceedings". Bordeaux: 2016, p. 284-301.