File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,7 @@ static bool check_renaming(const typet &type)
49
49
{
50
50
if (type.id ()==ID_array)
51
51
return check_renaming (to_array_type (type).size ());
52
- else if (type.id ()==ID_struct ||
53
- type.id ()==ID_union ||
54
- type.id ()==ID_class)
52
+ else if (type.id () == ID_struct || type.id () == ID_union)
55
53
{
56
54
for (const auto &c : to_struct_union_type (type).components ())
57
55
if (check_renaming (c.type ()))
@@ -663,9 +661,7 @@ void goto_symex_statet::rename(
663
661
rename (array_type.subtype (), irep_idt (), ns, level);
664
662
rename (array_type.size (), ns, level);
665
663
}
666
- else if (type.id ()==ID_struct ||
667
- type.id ()==ID_union ||
668
- type.id ()==ID_class)
664
+ else if (type.id () == ID_struct || type.id () == ID_union)
669
665
{
670
666
struct_union_typet &s_u_type=to_struct_union_type (type);
671
667
struct_union_typet::componentst &components=s_u_type.components ();
@@ -729,9 +725,7 @@ void goto_symex_statet::get_original_name(typet &type) const
729
725
get_original_name (array_type.subtype ());
730
726
get_original_name (array_type.size ());
731
727
}
732
- else if (type.id ()==ID_struct ||
733
- type.id ()==ID_union ||
734
- type.id ()==ID_class)
728
+ else if (type.id () == ID_struct || type.id () == ID_union)
735
729
{
736
730
struct_union_typet &s_u_type=to_struct_union_type (type);
737
731
struct_union_typet::componentst &components=s_u_type.components ();
You can’t perform that action at this time.
0 commit comments