@@ -36,7 +36,7 @@ Date: April 2017
36
36
irep_idt get_tag (const typet &type)
37
37
{
38
38
// / \todo Use follow instead of assuming tag to symbol relationship.
39
- if (type.id () == ID_symbol )
39
+ if (type.id () == ID_symbol_type )
40
40
return to_symbol_type (type).get_identifier ();
41
41
else if (type.id () == ID_struct)
42
42
return irep_idt (" java::" + id2string (to_struct_type (type).get_tag ()));
@@ -394,11 +394,11 @@ java_string_library_preprocesst::process_equals_function_operands(
394
394
// / \return type of the "data" component
395
395
static typet get_data_type (const typet &type, const symbol_tablet &symbol_table)
396
396
{
397
- PRECONDITION (type.id ()== ID_struct || type.id ()==ID_symbol );
398
- if (type.id ()==ID_symbol )
397
+ PRECONDITION (type.id () == ID_struct || type.id () == ID_symbol_type );
398
+ if (type.id () == ID_symbol_type )
399
399
{
400
400
symbolt sym=*symbol_table.lookup (to_symbol_type (type).get_identifier ());
401
- CHECK_RETURN (sym.type .id ()!=ID_symbol );
401
+ CHECK_RETURN (sym.type .id () != ID_symbol_type );
402
402
return get_data_type (sym.type , symbol_table);
403
403
}
404
404
// else type id is ID_struct
@@ -413,11 +413,11 @@ static typet get_data_type(const typet &type, const symbol_tablet &symbol_table)
413
413
static typet
414
414
get_length_type (const typet &type, const symbol_tablet &symbol_table)
415
415
{
416
- PRECONDITION (type.id ()== ID_struct || type.id ()==ID_symbol );
417
- if (type.id ()==ID_symbol )
416
+ PRECONDITION (type.id () == ID_struct || type.id () == ID_symbol_type );
417
+ if (type.id () == ID_symbol_type )
418
418
{
419
419
symbolt sym=*symbol_table.lookup (to_symbol_type (type).get_identifier ());
420
- CHECK_RETURN (sym.type .id ()!=ID_symbol );
420
+ CHECK_RETURN (sym.type .id () != ID_symbol_type );
421
421
return get_length_type (sym.type , symbol_table);
422
422
}
423
423
// else type id is ID_struct
@@ -892,7 +892,7 @@ void java_string_library_preprocesst::code_assign_java_string_to_string_expr(
892
892
PRECONDITION (implements_java_char_sequence_pointer (rhs.type ()));
893
893
894
894
typet deref_type;
895
- if (rhs.type ().subtype ().id ()==ID_symbol )
895
+ if (rhs.type ().subtype ().id () == ID_symbol_type )
896
896
deref_type=symbol_table.lookup_ref (
897
897
to_symbol_type (rhs.type ().subtype ()).get_identifier ()).type ;
898
898
else
0 commit comments