Skip to content

remove ID_class type #3635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/goto-symex/goto_symex_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ static bool check_renaming(const typet &type)
{
if(type.id()==ID_array)
return check_renaming(to_array_type(type).size());
else if(type.id()==ID_struct ||
type.id()==ID_union ||
type.id()==ID_class)
else if(type.id() == ID_struct || type.id() == ID_union)
{
for(const auto &c : to_struct_union_type(type).components())
if(check_renaming(c.type()))
Expand Down Expand Up @@ -663,9 +661,7 @@ void goto_symex_statet::rename(
rename(array_type.subtype(), irep_idt(), ns, level);
rename(array_type.size(), ns, level);
}
else if(type.id()==ID_struct ||
type.id()==ID_union ||
type.id()==ID_class)
else if(type.id() == ID_struct || type.id() == ID_union)
{
struct_union_typet &s_u_type=to_struct_union_type(type);
struct_union_typet::componentst &components=s_u_type.components();
Expand Down Expand Up @@ -729,9 +725,7 @@ void goto_symex_statet::get_original_name(typet &type) const
get_original_name(array_type.subtype());
get_original_name(array_type.size());
}
else if(type.id()==ID_struct ||
type.id()==ID_union ||
type.id()==ID_class)
else if(type.id() == ID_struct || type.id() == ID_union)
{
struct_union_typet &s_u_type=to_struct_union_type(type);
struct_union_typet::componentst &components=s_u_type.components();
Expand Down