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 #587 11 : : * 12 : : */ 13 : : #include <cvc5/cvc5.h> 14 : : 15 : : using namespace cvc5; 16 : 1 : int main(void) 17 : : { 18 : 1 : TermManager tm; 19 : 1 : Solver solver(tm); 20 : 1 : solver.setOption("incremental", "false"); 21 : 1 : solver.setOption("produce-interpolants", "true"); 22 : 1 : solver.setOption("incremental", "true"); 23 : 1 : Sort s0 = tm.getRealSort(); 24 : 1 : Term t1 = tm.mkConst(s0, "_x15"); 25 : 1 : Term t2 = tm.mkReal(7972974285720917); 26 : 1 : Op o3 = tm.mkOp(Kind::LT); 27 : 4 : Term t4 = tm.mkTerm(o3, {t2, t1}); 28 : 1 : Sort s5 = t4.getSort(); 29 : 1 : solver.assertFormula(t4); 30 : 1 : Term t6 = solver.getInterpolant(t4); 31 : : 32 : 1 : return 0; 33 : 1 : }