mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
add examples with proof replay
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
88d10f7fe4
commit
f6595c161f
9 changed files with 166 additions and 5 deletions
|
@ -931,6 +931,14 @@ extern "C" {
|
|||
on_clause_eh(user_ctx, of_expr(pr.get()), of_ast_vector(literals));
|
||||
};
|
||||
to_solver_ref(s)->register_on_clause(user_context, _on_clause);
|
||||
auto& solver = *to_solver(s);
|
||||
|
||||
if (!solver.m_cmd_context) {
|
||||
solver.m_cmd_context = alloc(cmd_context, false, &(mk_c(c)->m()));
|
||||
install_proof_cmds(*solver.m_cmd_context);
|
||||
init_proof_cmds(*solver.m_cmd_context);
|
||||
}
|
||||
solver.m_cmd_context->get_proof_cmds()->register_on_clause(user_context, _on_clause);
|
||||
Z3_CATCH;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue