siSmt->assertFormula(siq);
Result r = siSmt->checkSat();
Trace("sygus-si") << "Result: " << r << std::endl;
- if (r.asSatisfiabilityResult().isSat() != Result::UNSAT)
+ Result::Sat res = r.asSatisfiabilityResult().isSat();
+ if (res != Result::UNSAT)
{
+ Warning() << "Warning : the single invocation solver determined the SyGuS "
+ "conjecture"
+ << (res == Result::SAT ? " is" : " may be") << " infeasible"
+ << std::endl;
// conjecture is infeasible or unknown
return false;
}
if (!value)
{
Trace("sygus-engine-debug") << "Conjecture is infeasible." << std::endl;
+ Warning() << "Warning : the SyGuS conjecture may be infeasible"
+ << std::endl;
return false;
}
else
-; COMMAND-LINE: --lang=sygus2 --sygus-si=none --sygus-out=status
+; COMMAND-LINE: --lang=sygus2 --sygus-si=none --sygus-out=status -q
; EXPECT: unknown
(set-logic LIA)
(synth-fun P ((x Int)) Bool)
; EXPECT: unknown
-; COMMAND-LINE: --lang=sygus2 --sygus-out=status
+; COMMAND-LINE: --lang=sygus2 --sygus-out=status -q
(set-logic SLIA)
(synth-fun f ((col1 String) (col2 String)) String
+; COMMAND-LINE: -q
+; EXPECT: unsat
(set-logic QF_UFNRA)
(set-option :nl-ext-purify true)
(set-option :sygus-inference true)
; EXPECT: unsat
-; COMMAND-LINE: --sygus-inference
+; COMMAND-LINE: --sygus-inference -q
(set-logic ALL)
(declare-fun v () Bool)
(assert false)
; EXPECT: unsat
-; COMMAND-LINE: --sygus-inference --strings-exp
+; COMMAND-LINE: --sygus-inference --strings-exp -q
(set-logic ALL)
(declare-fun a () String)
(declare-fun b () String)
; EXPECT: unknown
-; COMMAND-LINE: --lang=sygus2 --sygus-out=status
+; COMMAND-LINE: --lang=sygus2 --sygus-out=status -q
(set-logic ALL)
(synth-fun inv-fn ((i Int) (x (Array Int Int)) (c Int)) Bool)
; EXPECT: unsat
-; COMMAND-LINE: --sygus-inference --sygus-qe-preproc --no-check-unsat-cores
+; COMMAND-LINE: --sygus-inference --sygus-qe-preproc --no-check-unsat-cores -q
(set-logic ALL)
(declare-fun a () Real)
(declare-fun b () Real)
+; COMMAND-LINE: -q
+; EXPECT: unsat
(set-logic ALL)
(set-option :miniscope-quant true)
(set-option :sygus-inference true)