mirror of
https://github.com/Z3Prover/z3
synced 2025-08-29 06:28:57 +00:00
Extend spacer with callback events
Callback events allow the client of spacer to get events during exection. The events include new lemmas and unfolding.
This commit is contained in:
parent
b51251f394
commit
3c7165780c
12 changed files with 254 additions and 8 deletions
|
@ -34,6 +34,7 @@ Revision History:
|
|||
#include "model/model_smt2_pp.h"
|
||||
#include "ast/scoped_proof.h"
|
||||
#include "muz/transforms/dl_transforms.h"
|
||||
#include "muz/spacer/spacer_callback.h"
|
||||
|
||||
using namespace spacer;
|
||||
|
||||
|
@ -352,3 +353,10 @@ proof_ref dl_interface::get_proof()
|
|||
{
|
||||
return m_context->get_proof();
|
||||
}
|
||||
|
||||
void dl_interface::add_callback(void *state,
|
||||
const datalog::t_new_lemma_eh new_lemma_eh,
|
||||
const datalog::t_predecessor_eh predecessor_eh,
|
||||
const datalog::t_unfold_eh unfold_eh){
|
||||
m_context->callbacks().push_back(alloc(user_callback, *m_context, state, new_lemma_eh, predecessor_eh, unfold_eh));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue