@@ -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 ()));
@@ -393,11 +393,11 @@ java_string_library_preprocesst::process_equals_function_operands(
393
393
// / \return type of the "data" component
394
394
static typet get_data_type (const typet &type, const symbol_tablet &symbol_table)
395
395
{
396
- PRECONDITION (type.id ()==ID_struct || type.id ()==ID_symbol );
397
- if (type.id ()==ID_symbol )
396
+ PRECONDITION (type.id ()==ID_struct || type.id ()==ID_symbol_type );
397
+ if (type.id ()==ID_symbol_type )
398
398
{
399
399
symbolt sym=*symbol_table.lookup (to_symbol_type (type).get_identifier ());
400
- CHECK_RETURN (sym.type .id ()!=ID_symbol );
400
+ CHECK_RETURN (sym.type .id ()!=ID_symbol_type );
401
401
return get_data_type (sym.type , symbol_table);
402
402
}
403
403
// else type id is ID_struct
@@ -412,11 +412,11 @@ static typet get_data_type(const typet &type, const symbol_tablet &symbol_table)
412
412
static typet
413
413
get_length_type (const typet &type, const symbol_tablet &symbol_table)
414
414
{
415
- PRECONDITION (type.id ()==ID_struct || type.id ()==ID_symbol );
416
- if (type.id ()==ID_symbol )
415
+ PRECONDITION (type.id ()==ID_struct || type.id ()==ID_symbol_type );
416
+ if (type.id ()==ID_symbol_type )
417
417
{
418
418
symbolt sym=*symbol_table.lookup (to_symbol_type (type).get_identifier ());
419
- CHECK_RETURN (sym.type .id ()!=ID_symbol );
419
+ CHECK_RETURN (sym.type .id ()!=ID_symbol_type );
420
420
return get_length_type (sym.type , symbol_table);
421
421
}
422
422
// else type id is ID_struct
@@ -891,7 +891,7 @@ void java_string_library_preprocesst::code_assign_java_string_to_string_expr(
891
891
PRECONDITION (implements_java_char_sequence_pointer (rhs.type ()));
892
892
893
893
typet deref_type;
894
- if (rhs.type ().subtype ().id ()==ID_symbol )
894
+ if (rhs.type ().subtype ().id ()==ID_symbol_type )
895
895
deref_type=symbol_table.lookup_ref (
896
896
to_symbol_type (rhs.type ().subtype ()).get_identifier ()).type ;
897
897
else
0 commit comments