Skip to content

Commit 8de0649

Browse files
authored
Merge pull request #3635 from diffblue/remove_class
remove ID_class type
2 parents 71ca96a + c699972 commit 8de0649

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/goto-symex/goto_symex_state.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ static bool check_renaming(const typet &type)
4949
{
5050
if(type.id()==ID_array)
5151
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)
5553
{
5654
for(const auto &c : to_struct_union_type(type).components())
5755
if(check_renaming(c.type()))
@@ -663,9 +661,7 @@ void goto_symex_statet::rename(
663661
rename(array_type.subtype(), irep_idt(), ns, level);
664662
rename(array_type.size(), ns, level);
665663
}
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)
669665
{
670666
struct_union_typet &s_u_type=to_struct_union_type(type);
671667
struct_union_typet::componentst &components=s_u_type.components();
@@ -729,9 +725,7 @@ void goto_symex_statet::get_original_name(typet &type) const
729725
get_original_name(array_type.subtype());
730726
get_original_name(array_type.size());
731727
}
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)
735729
{
736730
struct_union_typet &s_u_type=to_struct_union_type(type);
737731
struct_union_typet::componentst &components=s_u_type.components();

0 commit comments

Comments
 (0)