3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 18:00:23 +00:00

adding user propagation to API

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-08-18 10:30:10 -07:00
parent 578ddf3e9d
commit 0c93c7aa08
8 changed files with 133 additions and 12 deletions

View file

@ -285,14 +285,27 @@ namespace smt {
static void collect_param_descrs(param_descrs & d);
/**
\brief register a user-propagator "theory"
\brief initialize a user-propagator "theory"
*/
void register_user_propagator(
void user_propagate_init(
void* ctx,
std::function<void(void*, unsigned, expr*)>& fixed_eh,
std::function<void(void*)>& push_eh,
std::function<void(void*, unsigned)>& pop_eh);
/**
\brief register an expression to be tracked fro user propagation.
*/
unsigned user_propagate_register(expr* e);
/**
\brief accept a user-propagation callback (issued during fixed_he).
*/
void user_propagate_consequence(unsigned sz, unsigned const* ids, expr* conseq);
/**
\brief Return a reference to smt::context.
This is a temporary hack to support user theories.