mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 14:23:40 +00:00
update solver only if there is a manager
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5b71f7cf9e
commit
b03d4e4fc2
1 changed files with 4 additions and 3 deletions
|
@ -624,11 +624,12 @@ void cmd_context::set_produce_proofs(bool f) {
|
||||||
if (m_params.m_proof == f)
|
if (m_params.m_proof == f)
|
||||||
return;
|
return;
|
||||||
SASSERT(!has_assertions());
|
SASSERT(!has_assertions());
|
||||||
if (has_manager())
|
|
||||||
m().toggle_proof_mode(f ? PGM_ENABLED : PGM_DISABLED);
|
|
||||||
m_params.m_proof = f;
|
m_params.m_proof = f;
|
||||||
|
if (has_manager()) {
|
||||||
|
m().toggle_proof_mode(f ? PGM_ENABLED : PGM_DISABLED);
|
||||||
mk_solver();
|
mk_solver();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool cmd_context::produce_models() const {
|
bool cmd_context::produce_models() const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue