@@ -36,7 +36,7 @@ Date: April 2017
3636irep_idt get_tag (const typet &type)
3737{
3838 // / \todo Use follow instead of assuming tag to symbol relationship.
39- if (type.id () == ID_symbol )
39+ if (type.id () == ID_symbol_type )
4040 return to_symbol_type (type).get_identifier ();
4141 else if (type.id () == ID_struct)
4242 return irep_idt (" java::" + id2string (to_struct_type (type).get_tag ()));
@@ -393,11 +393,11 @@ java_string_library_preprocesst::process_equals_function_operands(
393393// / \return type of the "data" component
394394static typet get_data_type (const typet &type, const symbol_tablet &symbol_table)
395395{
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 )
398398 {
399399 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 );
401401 return get_data_type (sym.type , symbol_table);
402402 }
403403 // else type id is ID_struct
@@ -412,11 +412,11 @@ static typet get_data_type(const typet &type, const symbol_tablet &symbol_table)
412412static typet
413413get_length_type (const typet &type, const symbol_tablet &symbol_table)
414414{
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 )
417417 {
418418 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 );
420420 return get_length_type (sym.type , symbol_table);
421421 }
422422 // else type id is ID_struct
@@ -891,7 +891,7 @@ void java_string_library_preprocesst::code_assign_java_string_to_string_expr(
891891 PRECONDITION (implements_java_char_sequence_pointer (rhs.type ()));
892892
893893 typet deref_type;
894- if (rhs.type ().subtype ().id ()==ID_symbol )
894+ if (rhs.type ().subtype ().id ()==ID_symbol_type )
895895 deref_type=symbol_table.lookup_ref (
896896 to_symbol_type (rhs.type ().subtype ()).get_identifier ()).type ;
897897 else
0 commit comments