mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
Bugfix in model translation (ast_manager mismatch after par-or). Thanks to stackoverflow user user297886 for reporting this issue.
http://stackoverflow.com/questions/28852722/segmentation-fault-while-using-par-or-tactic Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
8d11c431b7
commit
858ce1158d
2 changed files with 3 additions and 2 deletions
|
@ -74,6 +74,7 @@ void model::register_decl(func_decl * d, expr * v) {
|
|||
|
||||
void model::register_decl(func_decl * d, func_interp * fi) {
|
||||
SASSERT(d->get_arity() > 0);
|
||||
SASSERT(&fi->m() == &m_manager);
|
||||
decl2finterp::obj_map_entry * entry = m_finterp.insert_if_not_there2(d, 0);
|
||||
if (entry->get_data().m_value == 0) {
|
||||
// new entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue