summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-09-29 17:54:13 -0500
committerGitHub <noreply@github.com>2019-09-29 17:54:13 -0500
commitb7a6fe4a10f2e9fec6ce5ffd1dd722534e25955a (patch)
tree765dd296ae68ffe94f865c2b6080a531d50ff516
parentd06cf394473cbe09c2e1acc333526c41a6dd9687 (diff)
Fail single invocation techniques when utility inference fails. (#3322)
-rw-r--r--src/theory/quantifiers/single_inv_partition.cpp1
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress1/sygus/issue3320-quant.sy9
3 files changed, 11 insertions, 0 deletions
diff --git a/src/theory/quantifiers/single_inv_partition.cpp b/src/theory/quantifiers/single_inv_partition.cpp
index 2bb05ad1b..c713ec1dd 100644
--- a/src/theory/quantifiers/single_inv_partition.cpp
+++ b/src/theory/quantifiers/single_inv_partition.cpp
@@ -371,6 +371,7 @@ bool SingleInvocationPartition::init(std::vector<Node>& funcs,
else
{
Trace("si-prt") << "...failed." << std::endl;
+ return false;
}
return true;
}
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index cdf93384e..d5ce552e6 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -1685,6 +1685,7 @@ set(regress_1_tests
regress1/sygus/issue3201.smt2
regress1/sygus/issue3205.smt2
regress1/sygus/issue3247.smt2
+ regress1/sygus/issue3320-quant.sy
regress1/sygus/large-const-simp.sy
regress1/sygus/let-bug-simp.sy
regress1/sygus/list-head-x.sy
diff --git a/test/regress/regress1/sygus/issue3320-quant.sy b/test/regress/regress1/sygus/issue3320-quant.sy
new file mode 100644
index 000000000..a7b76182e
--- /dev/null
+++ b/test/regress/regress1/sygus/issue3320-quant.sy
@@ -0,0 +1,9 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-out=status
+(set-logic LIA)
+(declare-var x Int)
+(declare-var y Int)
+(synth-fun myfun ((x Int) (y Int)) Bool)
+(constraint (exists ((x Int) (y Int)) (myfun x y)))
+(constraint (exists ((x Int) (y Int)) (not (myfun x y))))
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback