From d733e417bf9c96ae3da449e194e57d5b06a0607a Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Mon, 14 Oct 2019 13:24:27 -0500 Subject: Ensure lemmas from sygus repair const are guarded (#3385) --- test/regress/CMakeLists.txt | 1 + test/regress/regress1/sygus/repair-const-unk.sy | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/regress/regress1/sygus/repair-const-unk.sy (limited to 'test') diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 1ed879400..cbe5f2e35 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -1726,6 +1726,7 @@ set(regress_1_tests regress1/sygus/qe.sy regress1/sygus/qf_abv.smt2 regress1/sygus/real-grammar.sy + regress1/sygus/repair-const-unk.sy regress1/sygus/simple-regexp.sy regress1/sygus/stopwatch-bt.sy regress1/sygus/strings-no-syntax.sy diff --git a/test/regress/regress1/sygus/repair-const-unk.sy b/test/regress/regress1/sygus/repair-const-unk.sy new file mode 100644 index 000000000..fdd818592 --- /dev/null +++ b/test/regress/regress1/sygus/repair-const-unk.sy @@ -0,0 +1,17 @@ +; EXPECT: unknown +; COMMAND-LINE: --sygus-out=status --sygus-repair-const --lang=sygus2 +(set-logic LIA) +(synth-fun f ((x Int) (y Int)) Int + ((Start Int) (CInt Int)) + ( + (Start Int ((+ (* CInt x) (* CInt y) CInt))) + (CInt Int ((Constant Int))) + ) +) +(declare-var x Int) +(declare-var y Int) +(constraint (= (f 0 0) 100)) +(constraint (= (f 1 1) 110)) +(constraint (= (f 2 1) 117)) +(constraint (>= (- (* 3 (f x y)) (f (* 2 x) (+ y 1))) (+ (* 7 x) (* 6 y)))) +(check-synth) -- cgit v1.2.3