Skip to content

Conversation

@tautschnig
Copy link
Collaborator

There are several SV-COMP benchmarks where is used and alias
variable with a global array variable. The alias varialbe is not
array ariable and it wants to alias with the array, i.e. with the
first element in the array. This commit prevents the type mismatch.

Do not merge: regression test required

There are several SV-COMP benchmarks where is used and alias
variable with a global array variable. The alias varialbe is not
array ariable and it wants to alias with the array, i.e. with the
first element in the array. This commit prevents the type mismatch.
implicit_typecast_followed(expr, src_type, type_qual, dest_type);
}

static bool is_array_element_alias(const namespacet& ns, const symbolt* const orig_symbol, const typet &src_type, const typet &dest_type)
Copy link
Contributor

Choose a reason for hiding this comment

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

Given the type comparison, you're only looking for strict aliases, right? If so suggest renaming function to reflect that.

@tautschnig
Copy link
Collaborator Author

It may be the case that #2106 is a proper fix here.

@TGWDB
Copy link
Contributor

TGWDB commented Feb 19, 2021

Closing since this may have been fixed in PR #2106 and no regression tests provided here (blocker even in initial comment).

If you believe this closure is erroneous please reopen this PR.

@TGWDB TGWDB closed this Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants