@@ -338,7 +338,7 @@ void java_bytecode_convert_classt::convert(
338338
339339 if (!c.super_class .empty ())
340340 {
341- const symbol_typet base (" java::" + id2string (c.super_class ));
341+ const struct_tag_typet base (" java::" + id2string (c.super_class ));
342342
343343 // if the superclass is generic then the class has the superclass reference
344344 // including the generic info in its signature
@@ -350,7 +350,7 @@ void java_bytecode_convert_classt::convert(
350350 {
351351 try
352352 {
353- const java_generic_symbol_typet generic_base (
353+ const java_generic_struct_tag_typet generic_base (
354354 base, superclass_ref.value (), qualified_classname);
355355 class_type.add_base (generic_base);
356356 }
@@ -378,7 +378,7 @@ void java_bytecode_convert_classt::convert(
378378 // interfaces are recorded as bases
379379 for (const auto &interface : c.implements )
380380 {
381- const symbol_typet base (" java::" + id2string (interface));
381+ const struct_tag_typet base (" java::" + id2string (interface));
382382
383383 // if the interface is generic then the class has the interface reference
384384 // including the generic info in its signature
@@ -390,7 +390,7 @@ void java_bytecode_convert_classt::convert(
390390 {
391391 try
392392 {
393- const java_generic_symbol_typet generic_base (
393+ const java_generic_struct_tag_typet generic_base (
394394 base, interface_ref.value (), qualified_classname);
395395 class_type.add_base (generic_base);
396396 }
@@ -774,26 +774,27 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
774774
775775 for (const char l : letters)
776776 {
777- symbol_typet symbol_type =
778- to_symbol_type (java_array_type (l).subtype ());
777+ struct_tag_typet struct_tag_type =
778+ to_struct_tag_type (java_array_type (l).subtype ());
779779
780- const irep_idt &symbol_type_identifier=symbol_type.get_identifier ();
781- if (symbol_table.has_symbol (symbol_type_identifier))
780+ const irep_idt &struct_tag_type_identifier =
781+ struct_tag_type.get_identifier ();
782+ if (symbol_table.has_symbol (struct_tag_type_identifier))
782783 return ;
783784
784785 java_class_typet class_type;
785786 // we have the base class, java.lang.Object, length and data
786787 // of appropriate type
787- class_type.set_tag (symbol_type_identifier );
788+ class_type.set_tag (struct_tag_type_identifier );
788789 // Note that non-array types don't have "java::" at the beginning of their
789790 // tag, and their name is "java::" + their tag. Since arrays do have
790791 // "java::" at the beginning of their tag we set the name to be the same as
791792 // the tag.
792- class_type.set_name (symbol_type_identifier );
793+ class_type.set_name (struct_tag_type_identifier );
793794
794795 class_type.components ().reserve (3 );
795796 class_typet::componentt base_class_component (
796- " @java.lang.Object" , symbol_typet (" java::java.lang.Object" ));
797+ " @java.lang.Object" , struct_tag_typet (" java::java.lang.Object" ));
797798 base_class_component.set_pretty_name (" @java.lang.Object" );
798799 base_class_component.set_base_name (" @java.lang.Object" );
799800 class_type.components ().push_back (base_class_component);
@@ -809,16 +810,16 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
809810 data_component.set_base_name (" data" );
810811 class_type.components ().push_back (data_component);
811812
812- class_type.add_base (symbol_typet (" java::java.lang.Object" ));
813+ class_type.add_base (struct_tag_typet (" java::java.lang.Object" ));
813814
814815 INVARIANT (
815816 is_valid_java_array (class_type),
816817 " Constructed a new type representing a Java Array "
817818 " object that doesn't match expectations" );
818819
819820 symbolt symbol;
820- symbol.name =symbol_type_identifier ;
821- symbol.base_name =symbol_type .get (ID_C_base_name);
821+ symbol.name = struct_tag_type_identifier ;
822+ symbol.base_name = struct_tag_type .get (ID_C_base_name);
822823 symbol.is_type =true ;
823824 symbol.type = class_type;
824825 symbol.mode = ID_java;
@@ -827,13 +828,13 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
827828 // Also provide a clone method:
828829 // ----------------------------
829830
830- const irep_idt clone_name=
831- id2string (symbol_type_identifier)+ " .clone:()Ljava/lang/Object;" ;
831+ const irep_idt clone_name =
832+ id2string (struct_tag_type_identifier) + " .clone:()Ljava/lang/Object;" ;
832833 java_method_typet::parametert this_param;
833834 this_param.set_identifier (id2string (clone_name)+" ::this" );
834835 this_param.set_base_name (" this" );
835836 this_param.set_this ();
836- this_param.type ()= java_reference_type (symbol_type );
837+ this_param.type () = java_reference_type (struct_tag_type );
837838 const java_method_typet clone_type ({this_param}, java_lang_object_type ());
838839
839840 parameter_symbolt this_symbol;
@@ -850,7 +851,7 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
850851 local_symbol.name =local_name;
851852 local_symbol.base_name =" cloned_array" ;
852853 local_symbol.pretty_name =local_symbol.base_name ;
853- local_symbol.type = java_reference_type (symbol_type );
854+ local_symbol.type = java_reference_type (struct_tag_type );
854855 local_symbol.mode =ID_java;
855856 symbol_table.add (local_symbol);
856857 const auto &local_symexpr=local_symbol.symbol_expr ();
@@ -860,9 +861,9 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
860861 source_locationt location;
861862 location.set_function (local_name);
862863 side_effect_exprt java_new_array (
863- ID_java_new_array, java_reference_type (symbol_type ), location);
864- dereference_exprt old_array (this_symbol.symbol_expr (), symbol_type );
865- dereference_exprt new_array (local_symexpr, symbol_type );
864+ ID_java_new_array, java_reference_type (struct_tag_type ), location);
865+ dereference_exprt old_array (this_symbol.symbol_expr (), struct_tag_type );
866+ dereference_exprt new_array (local_symexpr, struct_tag_type );
866867 member_exprt old_length (
867868 old_array, length_component.get_name (), length_component.type ());
868869 java_new_array.copy_to_operands (old_length);
@@ -923,8 +924,8 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
923924
924925 symbolt clone_symbol;
925926 clone_symbol.name =clone_name;
926- clone_symbol.pretty_name =
927- id2string (symbol_type_identifier)+ " .clone:()" ;
927+ clone_symbol.pretty_name =
928+ id2string (struct_tag_type_identifier) + " .clone:()" ;
928929 clone_symbol.base_name =" clone" ;
929930 clone_symbol.type =clone_type;
930931 clone_symbol.value =clone_body;
@@ -1053,9 +1054,10 @@ static void find_and_replace_parameters(
10531054 find_and_replace_parameters (argument, replacement_parameters);
10541055 }
10551056 }
1056- else if (is_java_generic_symbol_type (type))
1057+ else if (is_java_generic_struct_tag_type (type))
10571058 {
1058- java_generic_symbol_typet &generic_base = to_java_generic_symbol_type (type);
1059+ java_generic_struct_tag_typet &generic_base =
1060+ to_java_generic_struct_tag_type (type);
10591061 std::vector<reference_typet> &gen_types = generic_base.generic_types ();
10601062 for (auto &gen_type : gen_types)
10611063 {
0 commit comments