Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * Test for project issue #345 11 : : * 12 : : */ 13 : : 14 : : #include <cvc5/cvc5.h> 15 : : 16 : : #include <cassert> 17 : : 18 : : using namespace cvc5; 19 : : 20 : 1 : int main(void) 21 : : { 22 : 1 : TermManager tm; 23 : 1 : Solver slv(tm); 24 : 1 : slv.setOption("solve-bv-as-int", "iand"); 25 : 1 : Sort s12 = tm.getIntegerSort(); 26 : 1 : Term t13 = tm.mkConst(s12, "_x11"); 27 : 3 : Term t25 = tm.mkTerm(tm.mkOp(Kind::INT_TO_BITVECTOR, {6294}), {t13}); 28 : 4 : Term t66 = tm.mkTerm(Kind::BITVECTOR_SLTBV, {t25, t25}); 29 : 4 : Term t154 = tm.mkTerm(Kind::BITVECTOR_SGT, {t66, t66}); 30 : 6 : Term query = tm.mkTerm(Kind::AND, {t154, t154, t154, t154}); 31 : 1 : slv.checkSatAssuming(query.notTerm()); 32 : 1 : }