Skip to content

[SV-COMP'18 18/19] Fixing issue 'implicit conversion not permitted' for alias variables. #2007

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

Closed
wants to merge 1 commit into from

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.
@@ -456,6 +456,23 @@ void c_typecastt::implicit_typecast(
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