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 #423. 11 : : */ 12 : : #include <cvc5/cvc5.h> 13 : : 14 : : using namespace cvc5; 15 : : 16 : 1 : int main(void) 17 : : { 18 : 1 : TermManager tm; 19 : 1 : Solver solver(tm); 20 : : 21 : 1 : solver.setOption("produce-models", "true"); 22 : 1 : solver.setOption("produce-difficulty", "true"); 23 : 1 : Sort s2 = tm.getRealSort(); 24 : 1 : Sort s3 = tm.mkSequenceSort(s2); 25 : 1 : Term t2; 26 : : { 27 : 1 : t2 = tm.mkEmptySequence(s3.getSequenceElementSort()); 28 : : } 29 : 2 : Term t22 = tm.mkReal("119605652059157009"); 30 : 3 : Term t32 = tm.mkTerm(Kind::SEQ_UNIT, {t22}); 31 : 4 : Term t43 = tm.mkTerm(Kind::SEQ_CONCAT, {t2, t32}); 32 : 4 : Term t51 = tm.mkTerm(Kind::DISTINCT, {t32, t32}); 33 : 1 : solver.checkSat(); 34 [ + + ][ - - ]: 3 : solver.blockModelValues({t51, t43}); 35 : 1 : }