mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 21:16:02 +00:00
enable user propagation on tactics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cbdd7b0696
commit
bfd61fec00
4 changed files with 94 additions and 1 deletions
|
@ -23,6 +23,7 @@ Notes:
|
|||
#include "util/params.h"
|
||||
#include "util/lbool.h"
|
||||
#include "util/statistics.h"
|
||||
#include "tactic/user_propagator_base.h"
|
||||
#include "tactic/goal.h"
|
||||
#include "tactic/tactic_exception.h"
|
||||
|
||||
|
@ -30,7 +31,7 @@ class progress_callback;
|
|||
|
||||
typedef ptr_buffer<goal> goal_buffer;
|
||||
|
||||
class tactic {
|
||||
class tactic : public user_propagator::core {
|
||||
unsigned m_ref_count;
|
||||
public:
|
||||
tactic():m_ref_count(0) {}
|
||||
|
@ -76,6 +77,14 @@ public:
|
|||
|
||||
static void checkpoint(ast_manager& m);
|
||||
|
||||
void user_propagate_init(
|
||||
void* ctx,
|
||||
user_propagator::push_eh_t& push_eh,
|
||||
user_propagator::pop_eh_t& pop_eh,
|
||||
user_propagator::fresh_eh_t& fresh_eh) override {
|
||||
throw default_exception("tactic does not support user propagation");
|
||||
}
|
||||
|
||||
protected:
|
||||
friend class nary_tactical;
|
||||
friend class binary_tactical;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue