summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings/idof-nconst-index.smt2
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/regress1/strings/idof-nconst-index.smt2')
-rw-r--r--test/regress/regress1/strings/idof-nconst-index.smt29
1 files changed, 9 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/idof-nconst-index.smt2 b/test/regress/regress1/strings/idof-nconst-index.smt2
new file mode 100644
index 000000000..eba492220
--- /dev/null
+++ b/test/regress/regress1/strings/idof-nconst-index.smt2
@@ -0,0 +1,9 @@
+(set-logic ALL_SUPPORTED)
+(set-option :strings-exp true)
+(set-info :status sat)
+(declare-fun s () String)
+(assert (str.contains s "Hello and goodbye!"))
+(declare-fun x () Int)
+(assert (<= (str.len s) x))
+(assert (not (= (str.indexof s "goodbye" (- x 30)) (- 1))))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback