@@ -1124,18 +1124,17 @@ codet java_bytecode_convert_methodt::convert_instructions(
1124
1124
typet element_type=data_ptr.type ().subtype ();
1125
1125
const dereference_exprt element (data_plus_offset, element_type);
1126
1126
1127
- code_blockt assert_and_put ;
1127
+ c= code_blockt () ;
1128
1128
if (!disable_runtime_checks)
1129
1129
{
1130
1130
codet bounds_check=
1131
1131
get_array_bounds_check (deref, op[1 ], i_it->source_location );
1132
1132
bounds_check.add_source_location ()=i_it->source_location ;
1133
- assert_and_put .move_to_operands (bounds_check);
1133
+ c .move_to_operands (bounds_check);
1134
1134
}
1135
1135
code_assignt array_put (element, op[2 ]);
1136
1136
array_put.add_source_location ()=i_it->source_location ;
1137
- assert_and_put.move_to_operands (array_put);
1138
- c=std::move (assert_and_put);
1137
+ c.move_to_operands (array_put);
1139
1138
c.add_source_location ()=i_it->source_location ;
1140
1139
}
1141
1140
else if (statement==patternt (" ?store" ))
@@ -1174,10 +1173,8 @@ codet java_bytecode_convert_methodt::convert_instructions(
1174
1173
1175
1174
if (!disable_runtime_checks)
1176
1175
{
1177
- codet bounds_check=
1178
- get_array_bounds_check (deref, op[1 ], i_it->source_location );
1179
- bounds_check.add_source_location ()=i_it->source_location ;
1180
- c=std::move (bounds_check);
1176
+ c=get_array_bounds_check (deref, op[1 ], i_it->source_location );
1177
+ c.add_source_location ()=i_it->source_location ;
1181
1178
}
1182
1179
results[0 ]=java_bytecode_promotion (element);
1183
1180
}
@@ -1252,7 +1249,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1252
1249
// and write something like:
1253
1250
// if(retaddr==5) goto 5; else if(retaddr==10) goto 10; ...
1254
1251
assert (op.empty () && results.empty ());
1255
- code_blockt branches ;
1252
+ c= code_blockt () ;
1256
1253
auto retvar=variable (arg0, ' a' , i_it->address , NO_CAST);
1257
1254
assert (!jsr_ret_targets.empty ());
1258
1255
for (size_t idx=0 , idxlim=jsr_ret_targets.size (); idx!=idxlim; ++idx)
@@ -1261,7 +1258,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1261
1258
code_gotot g (label (number));
1262
1259
g.add_source_location ()=i_it->source_location ;
1263
1260
if (idx==idxlim-1 )
1264
- branches .move_to_operands (g);
1261
+ c .move_to_operands (g);
1265
1262
else
1266
1263
{
1267
1264
code_ifthenelset branch;
@@ -1272,10 +1269,9 @@ codet java_bytecode_convert_methodt::convert_instructions(
1272
1269
branch.cond ().add_source_location ()=i_it->source_location ;
1273
1270
branch.then_case ()=g;
1274
1271
branch.add_source_location ()=i_it->source_location ;
1275
- branches .move_to_operands (branch);
1272
+ c .move_to_operands (branch);
1276
1273
}
1277
1274
}
1278
- c=std::move (branches);
1279
1275
}
1280
1276
else if (statement==" iconst_m1" )
1281
1277
{
0 commit comments