3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 15:55:46 +00:00
This commit is contained in:
Nikolaj Bjorner 2022-09-30 14:51:28 -04:00
parent b9cba82531
commit 876ca2f1a5
3 changed files with 11 additions and 4 deletions

View file

@ -621,10 +621,15 @@ void cmd_context::set_produce_unsat_cores(bool f) {
}
void cmd_context::set_produce_proofs(bool f) {
SASSERT(!has_assertions() || m_params.m_proof == f);
if (has_manager())
if (m_params.m_proof == f)
return;
SASSERT(!has_assertions());
if (has_manager()) {
m().toggle_proof_mode(f ? PGM_ENABLED : PGM_DISABLED);
std::cout << m_params.m_proof << " " << f << "\n";
}
m_params.m_proof = f;
mk_solver();
}