File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
cbmc/src/pointer-analysis Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ void value_sett::get_value_set_rec(
734
734
}
735
735
else if (statement==ID_cpp_new ||
736
736
statement==ID_cpp_new_array ||
737
- statement==ID_java_new_array )
737
+ statement==ID_java_new_array_data )
738
738
{
739
739
assert (suffix==" " );
740
740
assert (expr_type.id ()==ID_pointer);
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ void local_value_sett::get_value_set_rec(
161
161
else if (expr.id ()==ID_side_effect)
162
162
{
163
163
const irep_idt &statement=expr.get (ID_statement);
164
- if (statement==ID_malloc )
164
+ if (statement==ID_allocate )
165
165
{
166
166
// Override how malloc finds its type:
167
167
exprt malloc_copy=expr;
@@ -235,7 +235,7 @@ void local_value_sett::apply_side_effects(
235
235
const namespacet &ns)
236
236
{
237
237
if (rhs.id ()==ID_side_effect &&
238
- rhs.get (ID_statement)==ID_malloc )
238
+ rhs.get (ID_statement)==ID_allocate )
239
239
{
240
240
const typet &dynamic_type=
241
241
static_cast <const typet &>(rhs.find (ID_C_cxx_alloc_type));
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ static bool is_instruction_StringBuilder_call(
114
114
if (asgn.rhs ().id ()==ID_side_effect)
115
115
{
116
116
side_effect_exprt const see = to_side_effect_expr (asgn.rhs ());
117
- if (see.get_statement () == ID_malloc &&
117
+ if (see.get_statement () == ID_allocate &&
118
118
does_irep_contains_ident (see.type (), " java::java.lang.StringBuilder" ))
119
119
return true ;
120
120
}
@@ -671,5 +671,3 @@ taint_statisticst::get_duration_of_all_phases_together() const
671
671
;
672
672
return sum < 0.0001 ? 0.0001 : sum;
673
673
}
674
-
675
-
Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ void taint_instrumentert::instrument_instructions_with_shadow_variables(
626
626
props);
627
627
}
628
628
else if (asgn.rhs ().id ()==ID_side_effect &&
629
- to_side_effect_expr (asgn.rhs ()).get_statement ()==ID_malloc )
629
+ to_side_effect_expr (asgn.rhs ()).get_statement ()==ID_allocate )
630
630
{
631
631
// TODO: Currently we handle here only allocations of single
632
632
// instances. Extension to array allocations will come later.
You can’t perform that action at this time.
0 commit comments