File tree 2 files changed +19
-17
lines changed 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,21 @@ void symex_level1t::operator()(ssa_exprt &ssa_expr)
55
55
// rename!
56
56
ssa_expr.set_level_1 (it->second .second );
57
57
}
58
+
59
+ void symex_level1t::restore_from (const renaming_levelt::current_namest &other)
60
+ {
61
+ auto it = current_names.begin ();
62
+ for (const auto &pair : other)
63
+ {
64
+ while (it != current_names.end () && it->first < pair.first )
65
+ ++it;
66
+ if (it == current_names.end () || pair.first < it->first )
67
+ current_names.insert (it, pair);
68
+ else if (it != current_names.end ())
69
+ {
70
+ PRECONDITION (it->first == pair.first );
71
+ it->second = pair.second ;
72
+ ++it;
73
+ }
74
+ }
75
+ }
Original file line number Diff line number Diff line change @@ -62,23 +62,7 @@ struct symex_level1t : public renaming_levelt
62
62
{
63
63
void operator ()(ssa_exprt &ssa_expr);
64
64
65
- void restore_from (const current_namest &other)
66
- {
67
- auto it = current_names.begin ();
68
- for (const auto &pair : other)
69
- {
70
- while (it != current_names.end () && it->first < pair.first )
71
- ++it;
72
- if (it == current_names.end () || pair.first < it->first )
73
- current_names.insert (it, pair);
74
- else if (it != current_names.end ())
75
- {
76
- PRECONDITION (it->first == pair.first );
77
- it->second = pair.second ;
78
- ++it;
79
- }
80
- }
81
- }
65
+ void restore_from (const current_namest &other);
82
66
83
67
symex_level1t () = default ;
84
68
~symex_level1t () override = default ;
You can’t perform that action at this time.
0 commit comments