1 /********************* */
2 /*! \file issue5074.cpp
4 ** Top contributors (to current version):
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2020 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.\endverbatim
12 ** \brief Test for issue #5074
15 #include "api/cvc4cpp.h"
17 using namespace CVC4::api
;
22 Term c1
= slv
.mkConst(slv
.getIntegerSort());
23 Term t6
= slv
.mkTerm(Kind::STRING_FROM_CODE
, c1
);
24 Term t12
= slv
.mkTerm(Kind::STRING_TO_REGEXP
, t6
);
25 Term t14
= slv
.mkTerm(Kind::STRING_REPLACE_RE
, {t6
, t12
, t6
});
26 Term t16
= slv
.mkTerm(Kind::STRING_CONTAINS
, {t14
, t14
});
27 slv
.checkEntailed(t16
);