mirror of
https://github.com/AdaCore/cvc5.git
synced 2026-02-12 12:32:16 -08:00
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/******************************************************************************
|
|
* Top contributors (to current version):
|
|
* Aina Niemetz, Mudathir Mohamed
|
|
*
|
|
* This file is part of the cvc5 project.
|
|
*
|
|
* Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
|
|
* in the top-level source directory and their institutional affiliations.
|
|
* All rights reserved. See the file COPYING in the top-level source
|
|
* directory for licensing information.
|
|
* ****************************************************************************
|
|
*
|
|
* Test for project issue #656
|
|
*
|
|
*/
|
|
#include <cvc5/cvc5.h>
|
|
|
|
using namespace cvc5;
|
|
int main(void)
|
|
{
|
|
TermManager tm;
|
|
Solver solver(tm);
|
|
solver.setOption("incremental", "false");
|
|
solver.setOption("produce-abducts", "true");
|
|
Sort s0 = tm.getIntegerSort();
|
|
Sort s1 = tm.mkUninterpretedSort("_u0");
|
|
Term t2 = tm.mkConst(s1, "_x7");
|
|
Term t3 = tm.mkInteger(28601551);
|
|
Term t4 = tm.mkTerm(Kind::SEQ_UNIT, {t2});
|
|
Sort s5 = t4.getSort();
|
|
Term t6 = tm.mkTerm(Kind::BAG_MAKE, {t2, t3});
|
|
Sort s7 = t6.getSort();
|
|
Term t8 = tm.mkTerm(Kind::BAG_UNION_DISJOINT, {t6, t6});
|
|
Op o9 = tm.mkOp(Kind::BAG_CARD);
|
|
Term t10 = tm.mkTerm(o9, {t8});
|
|
Op o11 = tm.mkOp(Kind::SEQ_UPDATE);
|
|
Term t12 = tm.mkTerm(o11, {t4, t10, t4});
|
|
Op o13 = tm.mkOp(Kind::SEQ_CONTAINS);
|
|
Term t14 = tm.mkTerm(o13, {t4, t12});
|
|
Sort s15 = t14.getSort();
|
|
Term t16 = solver.getAbduct(t14);
|
|
|
|
return 0;
|
|
}
|