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 #445 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 : Sort s1 = tm.getIntegerSort(); 25 : 1 : Term t1 = tm.mkVar(s1, "_x0"); 26 : 2 : Term t3 = tm.mkInteger("8072314426184292007005683562403"); 27 : 6 : Term t7 = tm.mkTerm(Kind::ADD, {t1, t1, t1, t3}); 28 : 3 : Term t8 = tm.mkTerm(tm.mkOp(Kind::DIVISIBLE, {2319436191}), {t7}); 29 : 3 : Term vl = tm.mkTerm(Kind::VARIABLE_LIST, {t1}); 30 : 4 : Term t10 = tm.mkTerm(Kind::FORALL, {vl, t8}); 31 : 1 : slv.checkSatAssuming({t10}); 32 : 1 : slv.assertFormula({t10}); 33 : 1 : slv.checkSat(); 34 : 1 : }