File tree 5 files changed +6
-5
lines changed
5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ void goto_convertt::do_cpp_new(
580
580
if (new_array)
581
581
new_call.arguments ().push_back (count);
582
582
new_call.arguments ().push_back (object_size);
583
- new_call.set (" #type " , lhs.type ().subtype ());
583
+ new_call.set (ID_C_cxx_alloc_type , lhs.type ().subtype ());
584
584
new_call.lhs ()=tmp_symbol_expr;
585
585
new_call.add_source_location ()=rhs.source_location ();
586
586
@@ -612,7 +612,7 @@ void goto_convertt::do_cpp_new(
612
612
new_call.arguments ().push_back (count);
613
613
new_call.arguments ().push_back (object_size);
614
614
new_call.arguments ().push_back (rhs.op0 ()); // memory location
615
- new_call.set (" #type " , lhs.type ().subtype ());
615
+ new_call.set (ID_C_cxx_alloc_type , lhs.type ().subtype ());
616
616
new_call.lhs ()=tmp_symbol_expr;
617
617
new_call.add_source_location ()=rhs.source_location ();
618
618
Original file line number Diff line number Diff line change @@ -796,7 +796,7 @@ void value_sett::get_value_set_rec(
796
796
assert (suffix==" " );
797
797
798
798
const typet &dynamic_type=
799
- static_cast <const typet &>(expr.find (" #type " ));
799
+ static_cast <const typet &>(expr.find (ID_C_cxx_alloc_type ));
800
800
801
801
dynamic_object_exprt dynamic_object (dynamic_type);
802
802
dynamic_object.set_instance (location_number);
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ void value_set_fivrt::get_value_set_rec(
853
853
assert (suffix==" " );
854
854
855
855
const typet &dynamic_type=
856
- static_cast <const typet &>(expr.find (" #type " ));
856
+ static_cast <const typet &>(expr.find (ID_C_cxx_alloc_type ));
857
857
858
858
dynamic_object_exprt dynamic_object (dynamic_type);
859
859
// let's make up a `unique' number for this object...
Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ void value_set_fivrnst::get_value_set_rec(
627
627
assert (suffix==" " );
628
628
629
629
const typet &dynamic_type=
630
- static_cast <const typet &>(expr.find (" #type " ));
630
+ static_cast <const typet &>(expr.find (ID_C_cxx_alloc_type ));
631
631
632
632
dynamic_object_exprt dynamic_object (dynamic_type);
633
633
// let's make up a `unique' number for this object...
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ IREP_ID_ONE(main)
205
205
IREP_ID_ONE(expression)
206
206
IREP_ID_ONE(free)
207
207
IREP_ID_ONE(malloc)
208
+ IREP_ID_TWO(C_cxx_alloc_type, #cxx_alloc_type)
208
209
IREP_ID_ONE(cpp_new)
209
210
IREP_ID_ONE(cpp_delete)
210
211
IREP_ID_TWO(cpp_new_array, cpp_new[])
You can’t perform that action at this time.
0 commit comments