3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +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

@ -238,7 +238,7 @@ public:
virtual expr_ref get_implied_upper_bound(expr* e) = 0;
virtual void register_user_propagator(
virtual void user_propagate_init(
void* ctx,
std::function<void(void*, unsigned, expr*)>& fixed_eh,
std::function<void(void*)>& push_eh,
@ -246,6 +246,10 @@ public:
throw default_exception("user-propagators are only supported on the SMT solver");
}
virtual unsigned user_propagate_register(expr* e) { return 0; }
virtual void user_propagate_consequence(unsigned sz, unsigned const* ids, expr* conseq) {}
/**
\brief Display the content of this solver.