@@ -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 ()));
@@ -394,11 +394,11 @@ java_string_library_preprocesst::process_equals_function_operands(
394394// / \return type of the "data" component
395395static typet get_data_type (const typet &type, const symbol_tablet &symbol_table)
396396{
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 )
399399 {
400400 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 );
402402 return get_data_type (sym.type , symbol_table);
403403 }
404404 // else type id is ID_struct
@@ -413,11 +413,11 @@ static typet get_data_type(const typet &type, const symbol_tablet &symbol_table)
413413static typet
414414get_length_type (const typet &type, const symbol_tablet &symbol_table)
415415{
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 )
418418 {
419419 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 );
421421 return get_length_type (sym.type , symbol_table);
422422 }
423423 // else type id is ID_struct
@@ -892,7 +892,7 @@ void java_string_library_preprocesst::code_assign_java_string_to_string_expr(
892892 PRECONDITION (implements_java_char_sequence_pointer (rhs.type ()));
893893
894894 typet deref_type;
895- if (rhs.type ().subtype ().id ()==ID_symbol )
895+ if (rhs.type ().subtype ().id () == ID_symbol_type )
896896 deref_type=symbol_table.lookup_ref (
897897 to_symbol_type (rhs.type ().subtype ()).get_identifier ()).type ;
898898 else
0 commit comments