summaryrefslogtreecommitdiff
path: root/test/regress/regress0/smt2output.smt2
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-03-20 13:09:18 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-03-20 15:36:53 -0400
commit0c661d41f7594ee3c761b173c1e709ce428ce89d (patch)
tree8eac3152accfdf7f7f1af92106725a9351e21f56 /test/regress/regress0/smt2output.smt2
parentbf46697e4b5fe231621763d56a236e367e817c37 (diff)
Properly |quote| symbols in SMT-LIBv2 output.
Diffstat (limited to 'test/regress/regress0/smt2output.smt2')
-rw-r--r--test/regress/regress0/smt2output.smt215
1 files changed, 15 insertions, 0 deletions
diff --git a/test/regress/regress0/smt2output.smt2 b/test/regress/regress0/smt2output.smt2
new file mode 100644
index 000000000..26050d931
--- /dev/null
+++ b/test/regress/regress0/smt2output.smt2
@@ -0,0 +1,15 @@
+; This test checks the correct output behavior of SMT-LIBv2 symbols
+; (sometimes they have to be |quoted| with pipes).
+;
+; COMMAND-LINE: -qm
+; EXIT: 10
+(declare-fun |toto| () Bool)
+(declare-fun |to to| () Bool)
+(assert (and toto |to to|))
+(check-sat)
+; EXPECT: sat
+(get-model)
+; EXPECT: (model
+; EXPECT: (define-fun toto () Bool true)
+; EXPECT: (define-fun |to to| () Bool true)
+; EXPECT: )
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback