Adds regression test for automatic generation of SyGuS BV grammars (#2345)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Wed, 22 Aug 2018 17:18:14 +0000 (12:18 -0500)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 22 Aug 2018 17:18:14 +0000 (12:18 -0500)
test/regress/Makefile.tests
test/regress/regress0/sygus/hd-05-d1-prog-nogrammar.sy [new file with mode: 0644]

index f766396a11e9670b27e0607b325434c3385cd5ab..a4d318067ef2070b6c20014bd5ab0d1e0e83ea20 100644 (file)
@@ -827,6 +827,7 @@ REG0_TESTS = \
        regress0/sygus/check-generic-red.sy \
        regress0/sygus/const-var-test.sy \
        regress0/sygus/dt-no-syntax.sy \
+       regress0/sygus/hd-05-d1-prog-nogrammar.sy \
        regress0/sygus/let-ringer.sy \
        regress0/sygus/let-simp.sy \
        regress0/sygus/no-syntax-test-bool.sy \
diff --git a/test/regress/regress0/sygus/hd-05-d1-prog-nogrammar.sy b/test/regress/regress0/sygus/hd-05-d1-prog-nogrammar.sy
new file mode 100644 (file)
index 0000000..71af1e9
--- /dev/null
@@ -0,0 +1,10 @@
+; COMMAND-LINE: --sygus-out=status --cegqi-si=none
+; EXPECT: unsat
+
+(set-logic BV)
+
+(synth-fun f ((x (BitVec 32))) (BitVec 32))
+
+(declare-var x (BitVec 32))
+(constraint (= (bvor x #x00000001) (f x)))
+(check-synth)