File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ inline bool operator==(
55
55
const depth_iterator_expr_statet &right)
56
56
{ return left.it ==right.it && left.expr .get ()==right.expr .get (); }
57
57
58
-
59
58
// / Depth first search iterator base - iterates over supplied expression
60
59
// / and all its operands recursively.
61
60
// / Base class using CRTP
@@ -100,14 +99,8 @@ class depth_iterator_baset
100
99
depth_iterator_t &next_sibling_or_parent ()
101
100
{
102
101
PRECONDITION (!m_stack.empty ());
103
- while (!m_stack.empty ())
104
- {
105
- m_stack.back ().it ++;
106
- if (m_stack.back ().it ==m_stack.back ().end )
107
- m_stack.pop_back ();
108
- else if (this ->downcast ().push_expr (*m_stack.back ().it ))
109
- break ;
110
- }
102
+ m_stack.back ().it =m_stack.back ().end ;
103
+ ++(*this );
111
104
return this ->downcast ();
112
105
}
113
106
You can’t perform that action at this time.
0 commit comments