3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-13 18:54:43 +00:00

remove template Context dependency in every trail object

This commit is contained in:
Nikolaj Bjorner 2021-02-08 15:41:57 -08:00
parent df0a449f70
commit a152bb1e80
65 changed files with 413 additions and 413 deletions

View file

@ -64,7 +64,7 @@ namespace smt {
rational get_cost();
void init_min_cost(rational const& r);
class numeral_trail : public trail<context> {
class numeral_trail : public trail {
typedef scoped_mpz T;
T & m_value;
scoped_mpz_vector& m_old_values;
@ -78,7 +78,7 @@ namespace smt {
~numeral_trail() override {
}
void undo(context & ctx) override {
void undo() override {
m_value = m_old_values.back();
m_old_values.shrink(m_old_values.size() - 1);
}