chore(library/blast/imp_extension): style
This commit is contained in:
parent
606e28ca99
commit
61db311227
3 changed files with 5 additions and 7 deletions
|
@ -616,7 +616,7 @@ public:
|
|||
imp_extension * imp_ext = _imp_ext;
|
||||
while (imp_ext != nullptr) {
|
||||
path.push_back(imp_ext);
|
||||
imp_ext = imp_ext->m_parent;
|
||||
imp_ext = imp_ext->get_parent();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ Author: Daniel Selsam
|
|||
|
||||
namespace lean {
|
||||
namespace blast {
|
||||
|
||||
imp_extension::imp_extension(unsigned state_id): m_state_id(state_id), m_parent(nullptr) {}
|
||||
imp_extension::imp_extension(imp_extension * parent):
|
||||
m_state_id(parent->m_state_id), m_parent(parent) {
|
||||
|
@ -40,5 +39,4 @@ void imp_extension_state::undo_actions(imp_extension * imp_ext) {
|
|||
if (is_nil(asserts)) return;
|
||||
pop();
|
||||
}
|
||||
|
||||
}}
|
||||
|
|
|
@ -9,11 +9,11 @@ Author: Daniel Selsam
|
|||
namespace lean {
|
||||
namespace blast {
|
||||
|
||||
struct imp_extension : branch_extension {
|
||||
class imp_extension : public branch_extension {
|
||||
unsigned m_state_id;
|
||||
imp_extension * m_parent;
|
||||
list<hypothesis> m_asserts;
|
||||
|
||||
public:
|
||||
imp_extension(unsigned state_id);
|
||||
imp_extension(imp_extension * parent);
|
||||
~imp_extension();
|
||||
|
@ -26,7 +26,8 @@ struct imp_extension : branch_extension {
|
|||
virtual void hypothesis_activated(hypothesis const & h, hypothesis_idx hidx) override;
|
||||
};
|
||||
|
||||
struct imp_extension_state {
|
||||
class imp_extension_state {
|
||||
public:
|
||||
virtual void push() =0;
|
||||
virtual void pop() =0;
|
||||
virtual void assert(hypothesis const & h) =0;
|
||||
|
@ -38,5 +39,4 @@ struct imp_extension_state {
|
|||
};
|
||||
|
||||
typedef std::function<imp_extension_state*()> ext_state_maker;
|
||||
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue