Skip to content

Commit 40ecff8

Browse files
authored
Merge pull request diffblue#2250 from tautschnig/expr-iterator-deque
expr_iterator: use a std::deque to implement the stack
2 parents b51e2a8 + d5eabdf commit 40ecff8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/expr_iterator.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef CPROVER_UTIL_EXPR_ITERATOR_H
1010
#define CPROVER_UTIL_EXPR_ITERATOR_H
1111

12+
#include <deque>
1213
#include <iterator>
1314
#include <functional>
1415
#include <set>
@@ -39,7 +40,7 @@ class const_unique_depth_iteratort;
3940
/// Helper class for depth_iterator_baset
4041
struct depth_iterator_expr_statet final
4142
{
42-
typedef std::vector<exprt>::const_iterator operands_iteratort;
43+
typedef exprt::operandst::const_iterator operands_iteratort;
4344
inline depth_iterator_expr_statet(
4445
const exprt &expr,
4546
operands_iteratort it,
@@ -213,7 +214,7 @@ class depth_iterator_baset
213214
}
214215

215216
private:
216-
std::vector<depth_iterator_expr_statet> m_stack;
217+
std::deque<depth_iterator_expr_statet> m_stack;
217218

218219
depth_iterator_t &downcast()
219220
{ return static_cast<depth_iterator_t &>(*this); }

0 commit comments

Comments
 (0)