Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Andrew Reynolds, Aina Niemetz 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2025 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 #621 14 : : * 15 : : */ 16 : : #include <cvc5/cvc5.h> 17 : : 18 : : using namespace cvc5; 19 : 1 : int main(void) 20 : : { 21 : 2 : TermManager tm; 22 : 2 : Solver solver(tm); 23 : 1 : solver.setOption("incremental", "false"); 24 : 1 : solver.setOption("produce-interpolants", "true"); 25 : 1 : solver.setOption("preprocess-only", "true"); 26 : 1 : solver.setOption("preregister-mode", "lazy"); 27 : 2 : Sort s0 = tm.getIntegerSort(); 28 : 3 : Term t1 = tm.mkInteger("842737"); 29 : 3 : Term t2 = tm.mkInteger("4673842139166733208409"); 30 : 3 : Term t3 = tm.mkInteger("651450683408549550470379592992505613867725244404"); 31 : 2 : Op o4 = tm.mkOp(Kind::SUB); 32 : 5 : Term t5 = tm.mkTerm(o4, {t3, t1}); 33 : 5 : Term t6 = tm.mkTerm(Kind::GEQ, {t2, t5}); 34 : 2 : Sort s7 = t6.getSort(); 35 : 1 : Term t8 = solver.getInterpolant(t6); 36 : : 37 : 1 : return 0; 38 : : }