Skip to content

Smowton/fix/type equality improvements #4173

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
Changes from 1 commit
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
3 changes: 0 additions & 3 deletions src/util/simplify_expr_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,6 @@ bool simplify_exprt::simplify_member(exprt &expr)

// Guess: turning this into a byte-extract operation is not really an
// optimisation.
// The type_eq check is because get_subexpression_at_offset uses
// base_type_eq, whereas in the context of a simplifier we should not
// change the type of the expression.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll note down a TODO on my end to remove that type equality check when enabling the simplifier type equality checks.

if(
equivalent_member.is_not_nil() &&
equivalent_member.id() != ID_byte_extract_little_endian &&
Expand Down