Integrating Cardinality Constraints into Constraint Logic Programming with Sets

被引:5
作者
Cristia, Maximiliano [1 ,2 ]
Rossi, Gianfranco [3 ]
机构
[1] Univ Nacl Rosario, Rosario, Argentina
[2] CIFASIS, Rosario, Argentina
[3] Univ Parma, Parma, Italy
关键词
{log}; set theory; cardinality; formal verification; constraint logic programming; COMBINING SETS;
D O I
10.1017/S1471068421000521
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Formal reasoning about finite sets and cardinality is important for many applications. including software verification, where very often one needs to reason about the size of a given data structure. The Constraint Logic Programming tool {log} provides a decision procedure for deciding the satisfiability of formulas involving very general forms of finite sets, although it does not provide cardinality constraints. In this paper we adapt and integrate a decision procedure for a theory of finite sets with cardinality into {log}. The proposed solver is proved to be a decision procedure for its formulas. Besides, the new CLP instance is implemented as part of the {log} tool. In turn, the implementation uses Howe and King's Prolog SAT solver and Prolog's CLP(Q) library. as an integer linear programming solver. The empirical evaluation of this implementation based on +250 real verification conditions shows that it can be useful in practice.
引用
收藏
页码:468 / 502
页数:35
相关论文
共 47 条
  • [1] Abrial J.R., 2005, B BOOK ASSIGNING PRO
  • [2] Cardinality constraints for arrays (decidability results and applications)
    Alberti, F.
    Ghilardi, S.
    Pagani, E.
    [J]. FORMAL METHODS IN SYSTEM DESIGN, 2017, 51 (03) : 545 - 574
  • [3] Cardinal: A finite sets constraint solver
    Azevedo, Francisco
    [J]. CONSTRAINTS, 2007, 12 (01) : 93 - 129
  • [4] REASONING WITH FINITE SETS AND CARDINALITY CONSTRAINTS IN SMT
    Bansal, Kshitij
    Barrett, Clark
    Reynolds, Andrew
    Tinelli, Cesare
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2018, 14 (04)
  • [5] Decision Procedures for Theories of Sets with Measures
    Bender, Markus
    Sofronie-Stokkermans, Viorica
    [J]. AUTOMATED DEDUCTION - CADE 26, 2017, 10395 : 166 - 184
  • [6] Verification of Threshold-Based Distributed Algorithms by Decomposition to Decidable Logics
    Berkovits, Idan
    Lazic, Marijana
    Losa, Giuliano
    Padon, Oded
    Shoham, Sharon
    [J]. COMPUTER AIDED VERIFICATION, CAV 2019, PT II, 2019, 11562 : 245 - 266
  • [7] Bradley AR, 2006, LECT NOTES COMPUT SC, V3855, P427
  • [8] Cantone D., 2001, MG COMP SCI
  • [9] CLEARSY, AT B HOM PAG
  • [10] CRISTI A M., 2019, REWRITE RULES SOLVER