diff options
Diffstat (limited to 'test/regress/regress1/strings/regexp002.smt2')
-rw-r--r-- | test/regress/regress1/strings/regexp002.smt2 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/regexp002.smt2 b/test/regress/regress1/strings/regexp002.smt2 new file mode 100644 index 000000000..a8bd2187a --- /dev/null +++ b/test/regress/regress1/strings/regexp002.smt2 @@ -0,0 +1,24 @@ +(set-logic QF_S) +(set-info :status sat) +(set-option :strings-exp true) +; this option requires user to check whether the constraint is in the fragment +; currently we do not provide only positive membership constraint checking +; if users use this option but the constraint is not in this fragment, the result will fail +(set-option :strings-inm true) + +(declare-fun x () String) +(declare-fun y () String) + +(assert (str.in.re x + (re.* (re.++ (re.* (str.to.re "a") ) (str.to.re "b") )) + )) + +(assert (str.in.re y + (re.* (re.++ (re.* (str.to.re "a") ) (str.to.re "b") )) + )) + +(assert (not (= x y))) +(assert (= (str.len x) (str.len y))) +(assert (= (str.len y) 3)) + +(check-sat) |