Sets with Cardinality Constraints in Satisfiability Modulo Theories

被引:0
|
作者
Suter, Philippe [1 ]
Steiger, Robin [1 ]
Kuncak, Viktor [1 ]
机构
[1] Ecole Polytech Fed Lausanne, CH-1015 Lausanne, Switzerland
关键词
CHECKING;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Boolean Algebra with Presburger Arithmetic (BAPA) is a decidable logic that can express constraints on sets of elements and their cardinalities. Problems from verification of complex properties of software often contain fragments that belong to quantifier-free BAPA (QFBAPA). in contrast to many other NP-complete problems (such as quantifier-free first-order logic or linear arithmetic), the applications of QFBAPA to a broader set of problems has so far been hindered by the lack of an efficient implementation that can be used alongside other efficient decision procedures. We overcome these limitations by extending the efficient SMT solver Z3 with the ability to reason about cardinality (QFBAPA) constraints. Our implementation uses the DPLL(T) mechanism of Z3 to reason about the top-level propositional structure of a QFBAPA formula, improving the efficiency compared to previous implementations. Moreover, we present a new algorithm for automatically decomposing QFBAPA formulas. Our algorithm alleviates the exponential explosion of considering all Venn regions, significantly improving the tractability of formulas with many set variables. Because it is implemented as a theory plugin, our implementation enables Z3 to prove formulas that use QFBAPA constructs with constructs from other theories that Z3 supports, as well as with quantifiers. We have applied our implementation to the verification of functional programs; we show it can automatically prove formulas that no automated approach was reported to be able to prove before.
引用
收藏
页码:403 / 418
页数:16
相关论文
共 50 条
  • [1] Satisfiability modulo theories
    Barrett, Clark
    Sebastiani, Roberto
    Seshia, Sanjit A.
    Tinelli, Cesare
    Frontiers in Artificial Intelligence and Applications, 2009, 185 (01) : 825 - 885
  • [2] From propositional satisfiability to satisfiability modulo theories
    Sheini, Hossein M.
    Sakallah, Karem A.
    THEORY AND APPLICATIONS OF SATISFIABILITY TESTING - SAT 2006, PROCEEDINGS, 2006, 4121 : 1 - 9
  • [3] Satisfiability Modulo Theories: An Appetizer
    de Moura, Leonardo
    Bjorner, Nikolaj
    FORMAL METHODS: FOUNDATIONS AND APPLICATIONS, 2009, 5902 : 23 - 36
  • [4] A framework for Satisfiability Modulo Theories
    Kroening, Daniel
    Strichman, Ofer
    FORMAL ASPECTS OF COMPUTING, 2009, 21 (05) : 485 - 494
  • [5] Challenges in satisfiability modulo theories
    Nieuwenhuis, Robert
    Oliveras, Albert
    Rodriguez-Carbonell, Enric
    Rubio, Albert
    TERM REWRITING AND APPLICATIONS, PROCEEDINGS, 2007, 4533 : 2 - +
  • [6] Satisfiability Modulo Theories and Assignments
    Bonacina, Maria Paola
    Graham-Lengrand, Stephane
    Shankar, Natarajan
    AUTOMATED DEDUCTION - CADE 26, 2017, 10395 : 42 - 59
  • [7] Foundations of Satisfiability Modulo Theories
    Tinelli, Cesare
    LOGIC, LANGUAGE, INFORMATION AND COMPUTATION, 2010, 6188 : 58 - 58
  • [8] Solving weighted CSPs with meta-constraints by reformulation into satisfiability modulo theories
    Carlos Ansótegui
    Miquel Bofill
    Miquel Palahí
    Josep Suy
    Mateu Villaret
    Constraints, 2013, 18 : 236 - 268
  • [9] Solving weighted CSPs with meta-constraints by reformulation into satisfiability modulo theories
    Ansotegui, Carlos
    Bofill, Miquel
    Palahi, Miquel
    Suy, Josep
    Villaret, Mateu
    CONSTRAINTS, 2013, 18 (02) : 236 - 268
  • [10] An Instantiation Scheme for Satisfiability Modulo Theories
    Echenim, Mnacho
    Peltier, Nicolas
    JOURNAL OF AUTOMATED REASONING, 2012, 48 (03) : 293 - 362