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 #416. 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("solve-bv-as-int", "sum"); 22 : 1 : solver.setOption("strings-exp", "true"); 23 : 1 : Sort s1 = tm.getStringSort(); 24 : 1 : Term t27 = tm.mkConst(s1, "_x50"); 25 : 1 : Term t333 = tm.mkRegexpAll(); 26 : 5 : Term t1243 = tm.mkTerm(Kind::STRING_REPLACE_RE_ALL, {t27, t333, t27}); 27 : 4 : Term t1291 = tm.mkTerm(Kind::EQUAL, {t1243, t27}); 28 : 1 : solver.assertFormula(t1291); 29 : 1 : solver.checkSat(); 30 : 1 : }