Refactor result class (#8313)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 22 Mar 2022 01:27:20 +0000 (20:27 -0500)
committerGitHub <noreply@github.com>
Tue, 22 Mar 2022 01:27:20 +0000 (01:27 +0000)
commitc914f3eca82aaf51dd9a208574dab6aa3b000201
tree376eb7864675c428cae9c36383d6a3902d7e0017
parent4a58ed7daf86dd0b9cd1dabc9d83458da1fb23ae
Refactor result class (#8313)

This significantly refactors the internal result class. Entailments and "which" field are deleted, "Sat" is renamed to "Status". Moreover "TYPE_NONE" is made into a status.

Simplifies the usage of this class throughout the code.

It also changes the API Result method isSatUnknown to isUnknown.
58 files changed:
src/api/cpp/cvc5.cpp
src/api/cpp/cvc5.h
src/api/java/io/github/cvc5/api/Result.java
src/api/java/jni/result.cpp
src/api/python/cvc5.pxd
src/api/python/cvc5.pxi
src/main/command_executor.cpp
src/omt/bitvector_optimizer.cpp
src/omt/integer_optimizer.cpp
src/prop/prop_engine.cpp
src/smt/abduction_solver.cpp
src/smt/assertions.cpp
src/smt/command.cpp
src/smt/interpolation_solver.cpp
src/smt/optimization_solver.cpp
src/smt/optimization_solver.h
src/smt/quant_elim_solver.cpp
src/smt/smt_mode.cpp
src/smt/smt_solver.cpp
src/smt/solver_engine.cpp
src/smt/solver_engine.h
src/smt/solver_engine_state.cpp
src/smt/sygus_solver.cpp
src/theory/arith/attempt_solution_simplex.cpp
src/theory/arith/attempt_solution_simplex.h
src/theory/arith/dual_simplex.cpp
src/theory/arith/dual_simplex.h
src/theory/arith/fc_simplex.cpp
src/theory/arith/fc_simplex.h
src/theory/arith/nl/nonlinear_extension.cpp
src/theory/arith/nl/nonlinear_extension.h
src/theory/arith/simplex.h
src/theory/arith/soi_simplex.cpp
src/theory/arith/soi_simplex.h
src/theory/arith/theory_arith_private.cpp
src/theory/arith/theory_arith_private.h
src/theory/quantifiers/candidate_rewrite_database.cpp
src/theory/quantifiers/query_generator.cpp
src/theory/quantifiers/query_generator_sample_sat.cpp
src/theory/quantifiers/query_generator_unsat.cpp
src/theory/quantifiers/solution_filter.cpp
src/theory/quantifiers/sygus/ce_guided_single_inv.cpp
src/theory/quantifiers/sygus/cegis_core_connective.cpp
src/theory/quantifiers/sygus/sygus_interpol.cpp
src/theory/quantifiers/sygus/sygus_repair_const.cpp
src/theory/quantifiers/sygus/synth_conjecture.cpp
src/theory/quantifiers/sygus/synth_verify.cpp
src/theory/smt_engine_subsolver.cpp
src/util/result.cpp
src/util/result.h
test/unit/api/cpp/result_black.cpp
test/unit/api/java/ResultTest.java
test/unit/api/python/test_result.py
test/unit/theory/theory_bv_opt_white.cpp
test/unit/theory/theory_bv_white.cpp
test/unit/theory/theory_int_opt_white.cpp
test/unit/theory/theory_opt_multigoal_white.cpp
test/unit/theory/theory_quantifiers_bv_inverter_white.cpp