Skip to content

Commit

Permalink
fix #6126
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jul 4, 2022
1 parent d61d0f6 commit ac8aaed
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ackermannization/ackr_model_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ class ackr_model_converter : public model_converter {

void operator()(model_ref & md) override {
TRACE("ackermannize", tout << (fixed_model? "fixed" : "nonfixed") << "\n";);
SASSERT(!fixed_model || md.get() == 0 || (!md->get_num_constants() && !md->get_num_functions()));
model_ref& old_model = fixed_model ? abstr_model : md;
SASSERT(old_model.get());
model * new_model = alloc(model, m);
convert(old_model.get(), new_model);
CTRACE("ackermannize", md, tout << *md << "\n");
CTRACE("ackermannize", fixed_model, tout << *abstr_model << "\n");

model* new_model = alloc(model, m);

if (abstr_model)
convert(abstr_model.get(), new_model);
if (md)
convert(md.get(), new_model);
md = new_model;
}

Expand Down

0 comments on commit ac8aaed

Please sign in to comment.