@@ -2017,8 +2017,8 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
2017
2017
{
2018
2018
if (expr.function ().type ().find (" to-member" ).is_not_nil ())
2019
2019
{
2020
- const exprt &bound=
2021
- static_cast <const exprt &>(expr.function ().type ().find (" #bound " ));
2020
+ const exprt &bound =
2021
+ static_cast <const exprt &>(expr.function ().type ().find (ID_C_bound ));
2022
2022
2023
2023
if (bound.is_nil ())
2024
2024
{
@@ -2032,7 +2032,7 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
2032
2032
expr.arguments ().insert (expr.arguments ().begin (), bound);
2033
2033
2034
2034
// we don't need the object any more
2035
- expr.function ().type ().remove (" #bound " );
2035
+ expr.function ().type ().remove (ID_C_bound );
2036
2036
}
2037
2037
2038
2038
// do implicit dereference
@@ -2060,8 +2060,7 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
2060
2060
}
2061
2061
else if (expr.function ().type ().id ()==ID_code)
2062
2062
{
2063
- if (expr.function ().type ().get_bool (" #is_virtual" ) &&
2064
- !is_qualified)
2063
+ if (expr.function ().type ().get_bool (ID_C_is_virtual) && !is_qualified)
2065
2064
{
2066
2065
exprt vtptr_member;
2067
2066
if (op0.id ()==ID_member || op0.id ()==ID_ptrmember)
@@ -2093,9 +2092,9 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
2093
2092
vtptr_member.set (ID_component_name, vtable_name);
2094
2093
2095
2094
// look for the right entry
2096
- irep_idt vtentry_component_name=
2097
- vt_compo.type ().subtype ().get_string (ID_identifier)+ " :: " +
2098
- expr.function ().type ().get_string (" #virtual_name " );
2095
+ irep_idt vtentry_component_name =
2096
+ vt_compo.type ().subtype ().get_string (ID_identifier) +
2097
+ " :: " + expr.function ().type ().get_string (ID_C_virtual_name );
2099
2098
2100
2099
exprt vtentry_member (ID_ptrmember);
2101
2100
vtentry_member.copy_to_operands (vtptr_member);
@@ -2190,10 +2189,10 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
2190
2189
member);
2191
2190
2192
2191
// special case for the initialization of parents
2193
- if (member.get_bool (" #not_accessible " ))
2192
+ if (member.get_bool (ID_C_not_accessible ))
2194
2193
{
2195
2194
assert (member.get (ID_C_access)!=" " );
2196
- tmp_object_expr.set (" #not_accessible " , true );
2195
+ tmp_object_expr.set (ID_C_not_accessible , true );
2197
2196
tmp_object_expr.set (ID_C_access, member.get (ID_C_access));
2198
2197
}
2199
2198
@@ -2307,7 +2306,7 @@ void cpp_typecheckt::typecheck_function_call_arguments(
2307
2306
exprt::operandst::iterator arg_it=expr.arguments ().begin ();
2308
2307
for (const auto ¶meter : parameters)
2309
2308
{
2310
- if (parameter.get_bool (" #call_by_value " ))
2309
+ if (parameter.get_bool (ID_C_call_by_value ))
2311
2310
{
2312
2311
assert (is_reference (parameter.type ()));
2313
2312
@@ -2383,7 +2382,7 @@ void cpp_typecheckt::typecheck_method_application(
2383
2382
2384
2383
const symbolt &symbol=lookup (member_expr.get (ID_component_name));
2385
2384
symbolt &method_symbol=symbol_table.get_writeable_ref (symbol.name );
2386
- const symbolt &tag_symbol= lookup (symbol.type .get (" #member_name " ));
2385
+ const symbolt &tag_symbol = lookup (symbol.type .get (ID_C_member_name ));
2387
2386
2388
2387
// build the right template map
2389
2388
// if this is an instantiated template class method
@@ -2409,15 +2408,15 @@ void cpp_typecheckt::typecheck_method_application(
2409
2408
new_function.add_source_location ()=member_expr.source_location ();
2410
2409
expr.function ().swap (new_function);
2411
2410
2412
- if (!expr.function ().type ().get_bool (" #is_static " ))
2411
+ if (!expr.function ().type ().get_bool (ID_C_is_static ))
2413
2412
{
2414
2413
const code_typet &func_type=to_code_type (symbol.type );
2415
2414
typet this_type=func_type.parameters ().front ().type ();
2416
2415
2417
2416
// Special case. Make it a reference.
2418
2417
assert (this_type.id ()==ID_pointer);
2419
2418
this_type.set (ID_C_reference, true );
2420
- this_type.set (" #this " , true );
2419
+ this_type.set (ID_C_this , true );
2421
2420
2422
2421
if (expr.arguments ().size ()==func_type.parameters ().size ())
2423
2422
{
@@ -2690,7 +2689,7 @@ void cpp_typecheckt::convert_pmop(exprt &expr)
2690
2689
}
2691
2690
2692
2691
exprt tmp (expr.op1 ());
2693
- tmp.type ().set (" #bound " , expr.op0 ());
2692
+ tmp.type ().set (ID_C_bound , expr.op0 ());
2694
2693
expr.swap (tmp);
2695
2694
return ;
2696
2695
}
@@ -2714,8 +2713,7 @@ void cpp_typecheckt::typecheck_expr_function_identifier(exprt &expr)
2714
2713
2715
2714
void cpp_typecheckt::typecheck_expr (exprt &expr)
2716
2715
{
2717
- bool override_constantness=
2718
- expr.get_bool (" #override_constantness" );
2716
+ bool override_constantness = expr.get_bool (ID_C_override_constantness);
2719
2717
2720
2718
// We take care of an ambiguity in the C++ grammar.
2721
2719
// Needs to be done before the operands!
0 commit comments