fix(library/blast/imp_extension): do not use the name 'assert'
Closes #994
This commit is contained in:
parent
42b78962f9
commit
3de4ec1a6c
2 changed files with 3 additions and 3 deletions
|
@ -24,14 +24,14 @@ void imp_extension::hypothesis_activated(hypothesis const & h, hypothesis_idx) {
|
||||||
imp_extension_state & state = get_imp_extension_state(m_state_id);
|
imp_extension_state & state = get_imp_extension_state(m_state_id);
|
||||||
if (is_nil(m_asserts)) state.push();
|
if (is_nil(m_asserts)) state.push();
|
||||||
m_asserts = cons(h, m_asserts);
|
m_asserts = cons(h, m_asserts);
|
||||||
state.assert(h);
|
state.assert_hyp(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
void imp_extension_state::replay_actions(imp_extension * imp_ext) {
|
void imp_extension_state::replay_actions(imp_extension * imp_ext) {
|
||||||
list<hypothesis> const & asserts = reverse(imp_ext->get_asserts());
|
list<hypothesis> const & asserts = reverse(imp_ext->get_asserts());
|
||||||
if (is_nil(asserts)) return;
|
if (is_nil(asserts)) return;
|
||||||
push();
|
push();
|
||||||
for_each(asserts, [&](hypothesis const & h) { assert(h); });
|
for_each(asserts, [&](hypothesis const & h) { assert_hyp(h); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void imp_extension_state::undo_actions(imp_extension * imp_ext) {
|
void imp_extension_state::undo_actions(imp_extension * imp_ext) {
|
||||||
|
|
|
@ -30,7 +30,7 @@ class imp_extension_state {
|
||||||
public:
|
public:
|
||||||
virtual void push() =0;
|
virtual void push() =0;
|
||||||
virtual void pop() =0;
|
virtual void pop() =0;
|
||||||
virtual void assert(hypothesis const & h) =0;
|
virtual void assert_hyp(hypothesis const & h) =0;
|
||||||
|
|
||||||
virtual ~imp_extension_state() {}
|
virtual ~imp_extension_state() {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue