Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Aina Niemetz, Gereon Kremer, Andrew Reynolds 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2024 by the authors listed in the file AUTHORS 8 : : * in the top-level source directory and their institutional affiliations. 9 : : * All rights reserved. See the file COPYING in the top-level source 10 : : * directory for licensing information. 11 : : * **************************************************************************** 12 : : * 13 : : * Test for project issue #421 14 : : * 15 : : */ 16 : : 17 : : #include <cvc5/cvc5.h> 18 : : 19 : : #include <cassert> 20 : : 21 : : using namespace cvc5; 22 : : 23 : 1 : int main(void) 24 : : { 25 : 2 : TermManager tm; 26 : 2 : Solver slv(tm); 27 : 1 : slv.setLogic("QF_ALL"); 28 : 2 : Sort s1 = tm.mkBitVectorSort(4); 29 : 2 : Sort s4 = tm.getRealSort(); 30 : 2 : Sort s5 = tm.mkSequenceSort(s1); 31 : 2 : Term t8 = tm.mkConst(s5, "_x49"); 32 : 2 : Term t10 = tm.mkConst(s4, "_x51"); 33 : 4 : Term t65 = tm.mkTerm(Kind::SEQ_REV, {t8}); 34 : 4 : Term t69 = tm.mkTerm(Kind::TANGENT, {t10}); 35 : 5 : Term t77 = tm.mkTerm(Kind::LEQ, {t69, t10}); 36 : 4 : Term t128 = tm.mkTerm(Kind::SEQ_PREFIX, {t65, t8}); 37 : 1 : slv.assertFormula({t77}); 38 : 1 : slv.checkSatAssuming(t128.notTerm()); 39 : 1 : }