3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-19 12:23:38 +00:00
This commit is contained in:
Nikolaj Bjorner 2022-07-03 17:47:05 -07:00
parent d61d0f6a66
commit ac8aaed1d4

View file

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