@@ -1097,9 +1097,8 @@ codet java_bytecode_convert_methodt::convert_instructions(
1097
1097
{
1098
1098
for (unsigned s : address.second .successors )
1099
1099
{
1100
- address_mapt::iterator a_it=address_map.find (s);
1101
- assert (a_it!=address_map.end ());
1102
-
1100
+ const auto a_it = address_map.find (s);
1101
+ CHECK_RETURN (a_it != address_map.end ());
1103
1102
a_it->second .predecessors .insert (address.first );
1104
1103
}
1105
1104
}
@@ -1121,28 +1120,26 @@ codet java_bytecode_convert_methodt::convert_instructions(
1121
1120
1122
1121
while (!working_set.empty ())
1123
1122
{
1124
- address_mapt::iterator a_it=address_map.find (*cur);
1125
- CHECK_RETURN (a_it != address_map.end ());
1126
1123
auto cur = working_set.begin ();
1124
+ auto address_it = address_map.find (*cur);
1125
+ CHECK_RETURN (address_it != address_map.end ());
1126
+ auto &instruction = address_it->second ;
1127
1127
unsigned cur_pc=*cur;
1128
1128
working_set.erase (cur);
1129
1129
1130
- if (a_it-> second .done )
1130
+ if (instruction .done )
1131
1131
continue ;
1132
- working_set
1133
- . insert (a_it-> second . successors .begin (), a_it-> second .successors .end ());
1132
+ working_set. insert (
1133
+ instruction. successors .begin (), instruction .successors .end ());
1134
1134
1135
- instructionst::const_iterator i_it=a_it-> second .source ;
1136
- stack.swap (a_it-> second .stack );
1137
- a_it-> second .stack .clear ();
1138
- codet &c=a_it-> second .code ;
1135
+ instructionst::const_iterator i_it = instruction .source ;
1136
+ stack.swap (instruction .stack );
1137
+ instruction .stack .clear ();
1138
+ codet &c = instruction .code ;
1139
1139
1140
1140
assert (
1141
- stack.empty () ||
1142
- a_it->second .predecessors .size ()<=1 ||
1143
- has_prefix (
1144
- stack.front ().get_string (ID_C_base_name),
1145
- " $stack" ));
1141
+ stack.empty () || instruction.predecessors .size () <= 1 ||
1142
+ has_prefix (stack.front ().get_string (ID_C_base_name), " $stack" ));
1146
1143
1147
1144
irep_idt statement=i_it->statement ;
1148
1145
exprt arg0=i_it->args .size ()>=1 ?i_it->args [0 ]:nil_exprt ();
@@ -2488,8 +2485,8 @@ codet java_bytecode_convert_methodt::convert_instructions(
2488
2485
2489
2486
push (results);
2490
2487
2491
- a_it-> second .done = true ;
2492
- for (const unsigned address : a_it-> second .successors )
2488
+ instruction .done = true ;
2489
+ for (const unsigned address : instruction .successors )
2493
2490
{
2494
2491
address_mapt::iterator a_it2=address_map.find (address);
2495
2492
CHECK_RETURN (a_it2 != address_map.end ());
0 commit comments