mirror of
https://github.com/Z3Prover/z3
synced 2025-10-03 14:33:56 +00:00
add new model event handler for incremental optimization
This commit is contained in:
parent
2c472aaa10
commit
16448104eb
7 changed files with 94 additions and 1 deletions
|
@ -382,6 +382,13 @@ namespace opt {
|
|||
model_ref md = m->copy();
|
||||
fix_model(md);
|
||||
}
|
||||
if (m_on_model_eh && m) {
|
||||
model_ref md = m->copy();
|
||||
if (!m_model_fixed.contains(md.get()))
|
||||
fix_model(md);
|
||||
m_on_model_eh(m_on_model_ctx, md);
|
||||
m_model_fixed.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue