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 #621 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("preprocess-only", "true"); 23 : 1 : solver.setOption("preregister-mode", "lazy"); 24 : 1 : Sort s0 = tm.getIntegerSort(); 25 : 2 : Term t1 = tm.mkInteger("842737"); 26 : 2 : Term t2 = tm.mkInteger("4673842139166733208409"); 27 : 2 : Term t3 = tm.mkInteger("651450683408549550470379592992505613867725244404"); 28 : 1 : Op o4 = tm.mkOp(Kind::SUB); 29 : 4 : Term t5 = tm.mkTerm(o4, {t3, t1}); 30 : 4 : Term t6 = tm.mkTerm(Kind::GEQ, {t2, t5}); 31 : 1 : Sort s7 = t6.getSort(); 32 : 1 : Term t8 = solver.getInterpolant(t6); 33 : : 34 : 1 : return 0; 35 : 1 : }