summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-04-07 20:40:42 -0500
committerGitHub <noreply@github.com>2021-04-08 01:40:42 +0000
commit89384c9a4aad291ce5ca26917507e4fd47c6ec4f (patch)
tree5b963e9c863686dd452322a672a6deb46cec1bfa /test/regress
parenta3605a32a3968c141d50e95477584185616bdbbd (diff)
Initial support for parametric datatypes in sygus (#6304)
Fixes #6298. Enables parsing of par in the sygus parser, and adds support for default grammar construction. Also fixes a bug related to single invocation for non-function types.
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress0/sygus/issue6298-par.sy6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index c7c311079..83f1c7d84 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -1172,6 +1172,7 @@ set(regress_0_tests
regress0/sygus/issue4383-cache-fv-id.sy
regress0/sygus/issue4790-dtd.sy
regress0/sygus/issue5512-vvv.sy
+ regress0/sygus/issue6298-par.sy
regress0/sygus/let-ringer.sy
regress0/sygus/let-simp.sy
regress0/sygus/no-logic.sy
diff --git a/test/regress/regress0/sygus/issue6298-par.sy b/test/regress/regress0/sygus/issue6298-par.sy
new file mode 100644
index 000000000..bffa02b29
--- /dev/null
+++ b/test/regress/regress0/sygus/issue6298-par.sy
@@ -0,0 +1,6 @@
+; EXPECT: unsat
+; COMMAND-LINE: --lang=sygus2 --sygus-out=status
+(set-logic ALL)
+(declare-datatypes (( List 1)) ( (par (T) ((nil) (cons (head T) (tail (List T)))))))
+(synth-fun f () (List Int))
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback