summaryrefslogtreecommitdiff
path: root/test/regress/regress0
diff options
context:
space:
mode:
authormudathirmahgoub <mudathir-mahgoubyahia@uiowa.edu>2020-03-30 09:04:52 -0500
committerGitHub <noreply@github.com>2020-03-30 09:04:52 -0500
commit0060de329173c0b75c02778d003371f59cc11eff (patch)
tree92bec1579d0301a4c91e45c349c381a9bd2f1b17 /test/regress/regress0
parent01b257084a0a8ee70bff32e011704330d1544c01 (diff)
Frontend support for the choice operator (#4175)
Added the operator choice to Smt2.g and Cvc.g. Removed the unused parameter hasBoundVars from TheoryModel::getModelValue
Diffstat (limited to 'test/regress/regress0')
-rw-r--r--test/regress/regress0/parser/choice.cvc10
-rw-r--r--test/regress/regress0/parser/choice.smt210
2 files changed, 20 insertions, 0 deletions
diff --git a/test/regress/regress0/parser/choice.cvc b/test/regress/regress0/parser/choice.cvc
new file mode 100644
index 000000000..e0ebac051
--- /dev/null
+++ b/test/regress/regress0/parser/choice.cvc
@@ -0,0 +1,10 @@
+% EXPECT: sat
+
+a : INT;
+b : INT;
+c : INT;
+
+ASSERT (CHOICE(x: INT): x = a) = 1;
+ASSERT (CHOICE(x: INT): x = b) = 2;
+
+CHECKSAT; \ No newline at end of file
diff --git a/test/regress/regress0/parser/choice.smt2 b/test/regress/regress0/parser/choice.smt2
new file mode 100644
index 000000000..19763e222
--- /dev/null
+++ b/test/regress/regress0/parser/choice.smt2
@@ -0,0 +1,10 @@
+(set-logic ALL)
+(set-info :status sat)
+(declare-fun a () Int)
+(declare-fun b () Int)
+(declare-fun c () Int)
+(assert (= (choice ((x Int)) (= x a)) 1))
+(assert (= (choice ((x Int)) (= x b)) 2))
+;(assert (let ((x (choice ((x Int)) true))) (and (distinct a b x)(= x c))))
+(check-sat)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback