3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 02:25:32 +00:00

added API to monitor clause inferences

See RELEASE_NOTES for more information
examples pending.
This commit is contained in:
Nikolaj Bjorner 2022-10-19 08:34:55 -07:00
parent 77cbd89420
commit 07dd1065db
34 changed files with 505 additions and 122 deletions

View file

@ -344,7 +344,11 @@ public:
else
return m_solver2->get_labels(r);
}
void register_on_clause(void* ctx, user_propagator::on_clause_eh_t& on_clause) override {
switch_inc_mode();
m_solver2->register_on_clause(ctx, on_clause);
}
void user_propagate_init(
void* ctx,

View file

@ -278,7 +278,7 @@ public:
};
virtual lbool check_sat_core(unsigned num_assumptions, expr * const * assumptions) = 0;
protected:
virtual lbool get_consequences_core(expr_ref_vector const& asms, expr_ref_vector const& vars, expr_ref_vector& consequences);

View file

@ -84,6 +84,10 @@ public:
void set_phase(phase* p) override { }
void move_to_front(expr* e) override { }
void register_on_clause(void* ctx, user_propagator::on_clause_eh_t& on_clause) override {
m_tactic->register_on_clause(ctx, on_clause);
}
void user_propagate_init(
void* ctx,
user_propagator::push_eh_t& push_eh,