mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
add macros to model #4679
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
629e981e01
commit
f976b16e3f
|
@ -260,9 +260,8 @@ extern "C" {
|
||||||
bool initialized = to_solver(s)->m_solver.get() != nullptr;
|
bool initialized = to_solver(s)->m_solver.get() != nullptr;
|
||||||
if (!initialized)
|
if (!initialized)
|
||||||
init_solver(c, s);
|
init_solver(c, s);
|
||||||
for (expr* e : ctx->tracked_assertions()) {
|
for (expr* e : ctx->tracked_assertions())
|
||||||
to_solver(s)->assert_expr(e);
|
to_solver(s)->assert_expr(e);
|
||||||
}
|
|
||||||
to_solver_ref(s)->set_model_converter(ctx->get_model_converter());
|
to_solver_ref(s)->set_model_converter(ctx->get_model_converter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -306,6 +306,7 @@ void cmd_context::insert_macro(symbol const& s, unsigned arity, sort*const* doma
|
||||||
else {
|
else {
|
||||||
VERIFY(decls.insert(m(), arity, domain, t));
|
VERIFY(decls.insert(m(), arity, domain, t));
|
||||||
}
|
}
|
||||||
|
model_add(s, arity, domain, t);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmd_context::erase_macro(symbol const& s) {
|
void cmd_context::erase_macro(symbol const& s) {
|
||||||
|
|
Loading…
Reference in a new issue