1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andres Noetzli, Aina Niemetz |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 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 issue #5074 |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "api/cpp/cvc5.h" |
17 |
|
|
18 |
|
using namespace cvc5::api; |
19 |
|
|
20 |
1 |
int main() |
21 |
|
{ |
22 |
2 |
Solver slv; |
23 |
2 |
Term c1 = slv.mkConst(slv.getIntegerSort()); |
24 |
2 |
Term t6 = slv.mkTerm(Kind::STRING_FROM_CODE, c1); |
25 |
2 |
Term t12 = slv.mkTerm(Kind::STRING_TO_REGEXP, t6); |
26 |
2 |
Term t14 = slv.mkTerm(Kind::STRING_REPLACE_RE, {t6, t12, t6}); |
27 |
2 |
Term t16 = slv.mkTerm(Kind::STRING_CONTAINS, {t14, t14}); |
28 |
1 |
slv.checkEntailed(t16); |
29 |
|
|
30 |
1 |
return 0; |
31 |
|
} |