mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
API: add smt.logic parameter to enable setting the logic through the API
currently only Z3_solver_set_params() is supported logic has to be set before solver first usage or before solver reset
This commit is contained in:
parent
c1aa33339d
commit
d642d5fe4c
2 changed files with 6 additions and 0 deletions
|
@ -153,6 +153,11 @@ extern "C" {
|
|||
LOG_Z3_solver_set_params(c, s, p);
|
||||
RESET_ERROR_CODE();
|
||||
|
||||
symbol logic = to_param_ref(p).get_sym("smt.logic", symbol::null);
|
||||
if (logic != symbol::null) {
|
||||
to_solver(s)->m_logic = logic;
|
||||
}
|
||||
|
||||
if (to_solver(s)->m_solver) {
|
||||
bool old_model = to_solver(s)->m_params.get_bool("model", true);
|
||||
bool new_model = to_param_ref(p).get_bool("model", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue