Skip to content

Commit

Permalink
avoid duplicate class names frame in sat_scc and sat_smt
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Aug 31, 2020
1 parent bee3077 commit 314bd92
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/sat/smt/euf_internalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace euf {
loop:
if (!m.inc())
throw tactic_exception(m.limit().get_cancel_msg());
sat::frame & fr = m_stack.back();
sat::eframe & fr = m_stack.back();
expr* e = fr.m_e;
if (m_egraph.find(e)) {
m_stack.pop_back();
Expand Down Expand Up @@ -80,7 +80,7 @@ namespace euf {
return n;
}
if (is_app(e) && to_app(e)->get_num_args() > 0) {
m_stack.push_back(sat::frame(e));
m_stack.push_back(sat::eframe(e));
return nullptr;
}
n = m_egraph.mk(e, 0, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion src/sat/smt/euf_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace euf {
ptr_vector<euf::enode> m_var2node;
ptr_vector<unsigned> m_explain;
euf::enode_vector m_args;
svector<sat::frame> m_stack;
svector<sat::eframe> m_stack;
unsigned m_num_scopes { 0 };
unsigned_vector m_var_trail;
svector<scope> m_scopes;
Expand Down
8 changes: 4 additions & 4 deletions src/sat/smt/sat_smt.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Module Name:

namespace sat {

struct frame {
struct eframe {
expr* m_e;
unsigned m_idx;
frame(expr* e) : m_e(e), m_idx(0) {}
eframe(expr* e) : m_e(e), m_idx(0) {}
};

struct scoped_stack {
svector<frame>& s;
svector<eframe>& s;
unsigned sz;
scoped_stack(svector<frame>& s):s(s), sz(s.size()) {}
scoped_stack(svector<eframe>& s):s(s), sz(s.size()) {}
~scoped_stack() { s.shrink(sz); }
};

Expand Down

0 comments on commit 314bd92

Please sign in to comment.