3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-01-31 22:15:00 -08:00
parent 20870c43ec
commit 33525007ab
5 changed files with 42 additions and 36 deletions

View file

@ -497,7 +497,7 @@ namespace q {
m_num_regs(num_args + 1),
m_num_choices(0),
m_root(nullptr) {
DEBUG_CODE(m_egraph = 0;);
DEBUG_CODE(m_egraph = nullptr;);
#ifdef _PROFILE_MAM
m_counter = 0;
#endif
@ -566,7 +566,7 @@ namespace q {
#ifdef Z3DEBUG
void set_egraph(egraph * ctx) {
SASSERT(m_egraph == 0);
SASSERT(m_egraph == nullptr);
m_egraph = ctx;
}
@ -3772,8 +3772,7 @@ namespace q {
}
std::ostream& display(std::ostream& out) override {
out << "mam:\n";
m_lbl_hasher.display(out);
m_lbl_hasher.display(out << "mam:\n");
for (auto* t : m_trees)
if (t)
t->display(out);
@ -3783,7 +3782,6 @@ namespace q {
void propagate() override {
TRACE("trigger_bug", tout << "match\n"; display(tout););
for (code_tree* t : m_to_match) {
std::cout << t << "\n";
SASSERT(t->has_candidates());
m_interpreter.execute(t);
t->reset_candidates();