2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2022-04-05 13:38:57 -07:00
|
|
|
* Andres Noetzli, Mathias Preiner, Andrew Reynolds
|
2021-04-12 12:31:43 -07:00
|
|
|
*
|
|
|
|
|
* This file is part of the cvc5 project.
|
|
|
|
|
*
|
2023-05-09 11:06:18 -07:00
|
|
|
* Copyright (c) 2009-2023 by the authors listed in the file AUTHORS
|
2021-04-12 12:31:43 -07:00
|
|
|
* in the top-level source directory and their institutional affiliations.
|
|
|
|
|
* All rights reserved. See the file COPYING in the top-level source
|
|
|
|
|
* directory for licensing information.
|
|
|
|
|
* ****************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* Test for issue #5074
|
|
|
|
|
*/
|
2020-09-16 13:36:05 -07:00
|
|
|
|
2023-03-07 15:39:29 -08:00
|
|
|
#include <cvc5/cvc5.h>
|
2020-09-16 13:36:05 -07:00
|
|
|
|
2022-03-29 16:23:01 -07:00
|
|
|
using namespace cvc5;
|
2020-09-16 13:36:05 -07:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
Solver slv;
|
|
|
|
|
Term c1 = slv.mkConst(slv.getIntegerSort());
|
2022-03-21 17:22:41 -07:00
|
|
|
Term t6 = slv.mkTerm(Kind::STRING_FROM_CODE, {c1});
|
|
|
|
|
Term t12 = slv.mkTerm(Kind::STRING_TO_REGEXP, {t6});
|
2020-09-16 13:36:05 -07:00
|
|
|
Term t14 = slv.mkTerm(Kind::STRING_REPLACE_RE, {t6, t12, t6});
|
|
|
|
|
Term t16 = slv.mkTerm(Kind::STRING_CONTAINS, {t14, t14});
|
2022-03-14 13:29:30 -05:00
|
|
|
slv.checkSatAssuming(t16.notTerm());
|
2020-09-16 13:36:05 -07:00
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|