File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Author: Daniel Kroening
18
18
#include < util/prefix.h>
19
19
#include < util/ssa_expr.h>
20
20
21
+ #include < goto-programs/goto_program_template.h>
22
+
21
23
void graphml_witnesst::remove_l0_l1 (exprt &expr)
22
24
{
23
25
if (expr.id ()==ID_symbol)
@@ -241,10 +243,10 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
241
243
continue ;
242
244
}
243
245
244
- goto_tracet::stepst::const_iterator next=it ;
245
- for (++next;
246
- next!=goto_trace. steps . end () &&
247
- (step_to_node[next-> step_nr ]==sink || it->pc == next->pc );
246
+ auto next = std::next (it) ;
247
+ for (; next != goto_trace. steps . end () &&
248
+ (step_to_node[ next-> step_nr ] == sink ||
249
+ pointee_address_equalt{}( it->pc , next->pc )); // NOLINT
248
250
++next)
249
251
{
250
252
// advance
You can’t perform that action at this time.
0 commit comments