Update checkSynth and checkSynthNext to return SynthResult (#8382)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 25 Mar 2022 20:00:14 +0000 (15:00 -0500)
committerGitHub <noreply@github.com>
Fri, 25 Mar 2022 20:00:14 +0000 (20:00 +0000)
commitbf8ec7d9f13a9b37d9b5b279167b77cf28d74c45
tree2335b66f7dfb05cae36b7f3a7f4c1dd567d41aec
parent219e2763d670e7bad8d6178fa4dd80b5bf1f6ea8
Update checkSynth and checkSynthNext to return SynthResult (#8382)

Also extends to non-trivial unit test of SynthResult.

Note this also changes the expected output when using --sygus-out=status from unsat/sat/unknown to feasible/infeasible/fail (the option is used mostly just for our regressions). The output mode status-or-def is now equivalent to standard and is hence deleted.
233 files changed:
examples/api/cpp/sygus-fun.cpp
examples/api/cpp/sygus-grammar.cpp
examples/api/cpp/sygus-inv.cpp
examples/api/java/SygusFun.java
examples/api/java/SygusGrammar.java
examples/api/java/SygusInv.java
examples/api/python/sygus-fun.py
examples/api/python/sygus-grammar.py
examples/api/python/sygus-inv.py
src/api/cpp/cvc5.cpp
src/api/cpp/cvc5.h
src/api/java/io/github/cvc5/api/Solver.java
src/api/java/jni/solver.cpp
src/api/python/cvc5.pxd
src/api/python/cvc5.pxi
src/options/smt_options.toml
src/smt/command.cpp
src/smt/command.h
src/smt/solver_engine.cpp
src/smt/solver_engine.h
src/smt/solver_engine_state.cpp
src/smt/solver_engine_state.h
src/smt/sygus_solver.cpp
src/smt/sygus_solver.h
src/theory/quantifiers/sygus/sygus_interpol.cpp
test/regress/cli/regress0/sygus/General_plus10.sy
test/regress/cli/regress0/sygus/aig-si.sy
test/regress/cli/regress0/sygus/array-grammar-select.sy
test/regress/cli/regress0/sygus/assume-simple.sy
test/regress/cli/regress0/sygus/c100.sy
test/regress/cli/regress0/sygus/ccp16.lus.sy
test/regress/cli/regress0/sygus/cegqi-si-string-triv-2fun.sy
test/regress/cli/regress0/sygus/cegqi-si-string-triv.sy
test/regress/cli/regress0/sygus/check-generic-red.sy
test/regress/cli/regress0/sygus/const-var-test.sy
test/regress/cli/regress0/sygus/dt-no-syntax.sy
test/regress/cli/regress0/sygus/dt-sel-parse1.sy
test/regress/cli/regress0/sygus/hd-05-d1-prog-nogrammar.sy
test/regress/cli/regress0/sygus/ho-occ-synth-fun.sy
test/regress/cli/regress0/sygus/incremental-modify-ex.sy
test/regress/cli/regress0/sygus/inv-different-var-order.sy
test/regress/cli/regress0/sygus/issue3624.sy
test/regress/cli/regress0/sygus/issue4383-cache-fv-id.sy
test/regress/cli/regress0/sygus/issue4790-dtd.sy
test/regress/cli/regress0/sygus/issue6298-par.sy
test/regress/cli/regress0/sygus/let-ringer.sy
test/regress/cli/regress0/sygus/let-simp.sy
test/regress/cli/regress0/sygus/no-logic.sy
test/regress/cli/regress0/sygus/no-syntax-test-bool.sy
test/regress/cli/regress0/sygus/no-syntax-test.sy
test/regress/cli/regress0/sygus/parity-AIG-d0.sy
test/regress/cli/regress0/sygus/parse-bv-let.sy
test/regress/cli/regress0/sygus/pbe-pred-contra.sy
test/regress/cli/regress0/sygus/real-si-all.sy
test/regress/cli/regress0/sygus/strings-unconstrained.sy
test/regress/cli/regress0/sygus/sygus-no-wf.sy
test/regress/cli/regress0/sygus/sygus-uf.sy
test/regress/cli/regress0/sygus/uminus_one.sy
test/regress/cli/regress0/sygus/univ_3-long-repeat-conflict.sy
test/regress/cli/regress1/sygus/Base16_1.sy
test/regress/cli/regress1/sygus/VC22_a.sy
test/regress/cli/regress1/sygus/abv.sy
test/regress/cli/regress1/sygus/array-grammar-store.sy
test/regress/cli/regress1/sygus/array-uc.sy
test/regress/cli/regress1/sygus/array_search_2.sy
test/regress/cli/regress1/sygus/array_search_5-Q-easy.sy
test/regress/cli/regress1/sygus/array_sum_2_5.sy
test/regress/cli/regress1/sygus/bvudiv-by-2.sy
test/regress/cli/regress1/sygus/car_3.lus.sy
test/regress/cli/regress1/sygus/cegar1.sy
test/regress/cli/regress1/sygus/cegis-unif-inv-eq-fair.sy
test/regress/cli/regress1/sygus/cggmp.sy
test/regress/cli/regress1/sygus/clock-inc-tuple.sy
test/regress/cli/regress1/sygus/coeff-solve-inv.sy
test/regress/cli/regress1/sygus/commutative.sy
test/regress/cli/regress1/sygus/complex-no-rewrite.sy
test/regress/cli/regress1/sygus/complex-rewrite-in-db.sy
test/regress/cli/regress1/sygus/concat_extract_example.sy
test/regress/cli/regress1/sygus/constant-bool-si-all.sy
test/regress/cli/regress1/sygus/constant-dec-tree-bug.sy
test/regress/cli/regress1/sygus/constant-ite-bv.sy
test/regress/cli/regress1/sygus/constant.sy
test/regress/cli/regress1/sygus/crci-ssb-unk.sy
test/regress/cli/regress1/sygus/crcy-si-rcons.sy
test/regress/cli/regress1/sygus/crcy-si.sy
test/regress/cli/regress1/sygus/cube-nia.sy
test/regress/cli/regress1/sygus/discPresent.sy
test/regress/cli/regress1/sygus/double.sy
test/regress/cli/regress1/sygus/dt-test-ns.sy
test/regress/cli/regress1/sygus/dup-op.sy
test/regress/cli/regress1/sygus/eq-sub-obs.sy
test/regress/cli/regress1/sygus/error1-dt.sy
test/regress/cli/regress1/sygus/eval-uc.sy
test/regress/cli/regress1/sygus/extract.sy
test/regress/cli/regress1/sygus/fast-enum-backtrack.sy
test/regress/cli/regress1/sygus/fg_polynomial3.sy
test/regress/cli/regress1/sygus/find_inv_eq_bvmul_4bit_withoutgrammar-v2.sy
test/regress/cli/regress1/sygus/find_sc_bvult_bvnot.sy
test/regress/cli/regress1/sygus/ground-ite-free-constant-si.sy
test/regress/cli/regress1/sygus/hd-01-d1-prog.sy
test/regress/cli/regress1/sygus/hd-19-d1-prog-dup-op.sy
test/regress/cli/regress1/sygus/hd-sdiv.sy
test/regress/cli/regress1/sygus/ho-sygus.sy
test/regress/cli/regress1/sygus/icfp_14.12-flip-args.sy
test/regress/cli/regress1/sygus/icfp_14.12.sy
test/regress/cli/regress1/sygus/icfp_14_12_diff_types.sy
test/regress/cli/regress1/sygus/icfp_28_10.sy
test/regress/cli/regress1/sygus/icfp_easy-ite.sy
test/regress/cli/regress1/sygus/incremental-stream-ex.sy
test/regress/cli/regress1/sygus/int-any-const.sy
test/regress/cli/regress1/sygus/inv-example.sy
test/regress/cli/regress1/sygus/inv-missed-sol-true.sy
test/regress/cli/regress1/sygus/inv-unused.sy
test/regress/cli/regress1/sygus/inv_gen_fig8.sy
test/regress/cli/regress1/sygus/issue2914.sy
test/regress/cli/regress1/sygus/issue2935.sy
test/regress/cli/regress1/sygus/issue3109-share-sel.sy
test/regress/cli/regress1/sygus/issue3320-quant.sy
test/regress/cli/regress1/sygus/issue3461.sy
test/regress/cli/regress1/sygus/issue3580.sy
test/regress/cli/regress1/sygus/issue3649.sy
test/regress/cli/regress1/sygus/issue3802-default-consts.sy
test/regress/cli/regress1/sygus/large-const-simp.sy
test/regress/cli/regress1/sygus/let-bug-simp.sy
test/regress/cli/regress1/sygus/list-head-x.sy
test/regress/cli/regress1/sygus/list_recursor.sy
test/regress/cli/regress1/sygus/logiccell_help.sy
test/regress/cli/regress1/sygus/max-all.sy
test/regress/cli/regress1/sygus/max-limit.sy
test/regress/cli/regress1/sygus/max-try1.sy
test/regress/cli/regress1/sygus/max-try2.sy
test/regress/cli/regress1/sygus/max.sy
test/regress/cli/regress1/sygus/max2-bv.sy
test/regress/cli/regress1/sygus/multi-fun-polynomial2.sy
test/regress/cli/regress1/sygus/nflat-fwd-3.sy
test/regress/cli/regress1/sygus/nflat-fwd.sy
test/regress/cli/regress1/sygus/nia-max-square-ns.sy
test/regress/cli/regress1/sygus/no-flat-simp.sy
test/regress/cli/regress1/sygus/no-mention.sy
test/regress/cli/regress1/sygus/node-discrete.sy
test/regress/cli/regress1/sygus/once_2.sy
test/regress/cli/regress1/sygus/only-const-grammar.sy
test/regress/cli/regress1/sygus/pLTL_5_trace.sy
test/regress/cli/regress1/sygus/parity-si-rcons.sy
test/regress/cli/regress1/sygus/pbe_multi.sy
test/regress/cli/regress1/sygus/phone-1-long.sy
test/regress/cli/regress1/sygus/planning-unif.sy
test/regress/cli/regress1/sygus/process-10-vars.sy
test/regress/cli/regress1/sygus/qe.sy
test/regress/cli/regress1/sygus/rand_const.sy
test/regress/cli/regress1/sygus/rand_p_0.sy
test/regress/cli/regress1/sygus/rand_p_1.sy
test/regress/cli/regress1/sygus/re-concat.sy
test/regress/cli/regress1/sygus/real-any-const.sy
test/regress/cli/regress1/sygus/real-grammar.sy
test/regress/cli/regress1/sygus/rec-fun-swap.sy
test/regress/cli/regress1/sygus/rec-fun-sygus.sy
test/regress/cli/regress1/sygus/rec-fun-while-1.sy
test/regress/cli/regress1/sygus/rec-fun-while-2.sy
test/regress/cli/regress1/sygus/rec-fun-while-infinite.sy
test/regress/cli/regress1/sygus/repair-const-rl.sy
test/regress/cli/regress1/sygus/replicate-mod-assume.sy
test/regress/cli/regress1/sygus/replicate-mod.sy
test/regress/cli/regress1/sygus/rex-strings-alarm.sy
test/regress/cli/regress1/sygus/sets-pred-test.sy
test/regress/cli/regress1/sygus/simple-no-rewrite.sy
test/regress/cli/regress1/sygus/simple-not-in-grammar.sy
test/regress/cli/regress1/sygus/simple-regexp.sy
test/regress/cli/regress1/sygus/simple-rewrite-in-db.sy
test/regress/cli/regress1/sygus/simple-rewrite-not-in-db.sy
test/regress/cli/regress1/sygus/stopwatch-bt.sy
test/regress/cli/regress1/sygus/strings-any-term1.sy
test/regress/cli/regress1/sygus/strings-concat-3-args.sy
test/regress/cli/regress1/sygus/strings-double-rec.sy
test/regress/cli/regress1/sygus/strings-no-syntax.sy
test/regress/cli/regress1/sygus/strings-small.sy
test/regress/cli/regress1/sygus/strings-template-infer-unused.sy
test/regress/cli/regress1/sygus/strings-template-infer.sy
test/regress/cli/regress1/sygus/strings-trivial-simp.sy
test/regress/cli/regress1/sygus/strings-trivial-two-type.sy
test/regress/cli/regress1/sygus/strings-trivial.sy
test/regress/cli/regress1/sygus/sygus-dt.sy
test/regress/cli/regress1/sygus/sygus-lambda-fv.sy
test/regress/cli/regress1/sygus/sygus-uf-ex.sy
test/regress/cli/regress1/sygus/t8.sy
test/regress/cli/regress1/sygus/temp_input_to_synth_ic-error-121418.sy
test/regress/cli/regress1/sygus/tester.sy
test/regress/cli/regress1/sygus/tl-type-0.sy
test/regress/cli/regress1/sygus/tl-type-4x.sy
test/regress/cli/regress1/sygus/tl-type.sy
test/regress/cli/regress1/sygus/triv-type-mismatch-si.sy
test/regress/cli/regress1/sygus/twolets1.sy
test/regress/cli/regress1/sygus/twolets2-orig.sy
test/regress/cli/regress1/sygus/unbdd_inv_gen_winf1.sy
test/regress/cli/regress1/sygus/univ_2-long-repeat.sy
test/regress/cli/regress2/sygus/MPwL_d1s3.sy
test/regress/cli/regress2/sygus/array_sum_dd.sy
test/regress/cli/regress2/sygus/cegisunif-depth1-bv.sy
test/regress/cli/regress2/sygus/ex23.sy
test/regress/cli/regress2/sygus/examples-deq.sy
test/regress/cli/regress2/sygus/icfp_easy_mt_ite.sy
test/regress/cli/regress2/sygus/lustre-real.sy
test/regress/cli/regress2/sygus/max2-univ.sy
test/regress/cli/regress2/sygus/min_IC_1.sy
test/regress/cli/regress2/sygus/mpg_guard1-dd.sy
test/regress/cli/regress2/sygus/multi-udiv.sy
test/regress/cli/regress2/sygus/no-bad-filter.sy
test/regress/cli/regress2/sygus/no-syntax-test-no-si.sy
test/regress/cli/regress2/sygus/pbe_bvurem.sy
test/regress/cli/regress2/sygus/process-10-vars-2fun.sy
test/regress/cli/regress2/sygus/process-arg-invariance.sy
test/regress/cli/regress2/sygus/proj-issue119.sy
test/regress/cli/regress2/sygus/real-grammar-neg.sy
test/regress/cli/regress2/sygus/sets-fun-test.sy
test/regress/cli/regress2/sygus/strings-no-syntax-len.sy
test/regress/cli/regress2/sygus/sumn_recur_synth.sy
test/regress/cli/regress2/sygus/three.sy
test/regress/cli/regress3/DRAGON_1.lus.sy
test/regress/cli/regress3/cegisunif-depth1.sy
test/regress/cli/regress3/inv_gen_n_c11.sy
test/regress/cli/regress3/nia-max-square.sy
test/regress/cli/regress3/policyM.sy
test/regress/cli/regress3/sixfuncs.sy
test/regress/cli/regress3/strings-any-term.sy
test/regress/cli/regress3/unbdd_inv_gen_ex7.sy
test/regress/cli/regress3/unifpi-solve-car_1.lus.sy
test/regress/cli/regress3/vcb.sy
test/unit/api/cpp/solver_black.cpp
test/unit/api/cpp/synth_result_black.cpp
test/unit/api/java/SolverTest.java
test/unit/api/java/SynthResultTest.java
test/unit/api/python/test_solver.py
test/unit/api/python/test_synth_result.py