mirror of
https://github.com/Z3Prover/z3
synced 2025-08-15 15:25:26 +00:00
remove template Context dependency in every trail object
This commit is contained in:
parent
df0a449f70
commit
a152bb1e80
65 changed files with 413 additions and 413 deletions
|
@ -281,20 +281,22 @@ namespace smt {
|
|||
}
|
||||
};
|
||||
|
||||
class push_replay : public trail<theory_seq> {
|
||||
class push_replay : public trail {
|
||||
theory_seq& th;
|
||||
apply* m_apply;
|
||||
public:
|
||||
push_replay(apply* app): m_apply(app) {}
|
||||
void undo(theory_seq& th) override {
|
||||
push_replay(theory_seq& th, apply* app): th(th), m_apply(app) {}
|
||||
void undo() override {
|
||||
th.m_replay.push_back(m_apply);
|
||||
}
|
||||
};
|
||||
|
||||
class pop_branch : public trail<theory_seq> {
|
||||
class pop_branch : public trail {
|
||||
theory_seq& th;
|
||||
unsigned k;
|
||||
public:
|
||||
pop_branch(unsigned k): k(k) {}
|
||||
void undo(theory_seq& th) override {
|
||||
pop_branch(theory_seq& th, unsigned k): th(th), k(k) {}
|
||||
void undo() override {
|
||||
th.m_branch_start.erase(k);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue