mirror of
https://github.com/AdaCore/cvc5.git
synced 2026-02-12 12:32:16 -08:00
This PR moves two tests that dealt with particular issues out of unit/api/cpp (which should only have generic unit tests). They are now in unit/theory and api/cpp/.
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
/******************************************************************************
|
|
* Top contributors (to current version):
|
|
* Andrew Reynolds, Mathias Preiner
|
|
*
|
|
* This file is part of the cvc5 project.
|
|
*
|
|
* Copyright (c) 2009-2022 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 #421
|
|
*
|
|
*/
|
|
|
|
#include "api/cpp/cvc5.h"
|
|
#include <cassert>
|
|
|
|
using namespace cvc5;
|
|
|
|
int main(void)
|
|
{
|
|
Solver slv;
|
|
slv.setLogic("QF_ALL");
|
|
Sort s1 = slv.mkBitVectorSort(4);
|
|
Sort s4 = slv.getRealSort();
|
|
Sort s5 = slv.mkSequenceSort(s1);
|
|
Term t8 = slv.mkConst(s5, "_x49");
|
|
Term t10 = slv.mkConst(s4, "_x51");
|
|
Term t65 = slv.mkTerm(Kind::SEQ_REV, {t8});
|
|
Term t69 = slv.mkTerm(Kind::TANGENT, {t10});
|
|
Term t77 = slv.mkTerm(Kind::LEQ, {t69, t10});
|
|
Term t128 = slv.mkTerm(Kind::SEQ_PREFIX, {t65, t8});
|
|
slv.assertFormula({t77});
|
|
slv.checkSatAssuming(t128.notTerm());
|
|
}
|