Skip to content

Add a with a procedure "in" parameter which is an element of an array… #265

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
Jul 25, 2019

Conversation

tjj2017
Copy link
Collaborator

@tjj2017 tjj2017 commented Jul 12, 2019

… of enumerations

gnat2goto currently fails precondition from reps.ads:1655

This fault occurs when translating UKNI and test case enum_in_param has displays the same fault in a small, simple program.

The problem seems to be that, when translating UKNI, function Get_Identifier is called from procedure Handle_Parameter with an Irep value of I_DEREFERENCE_EXPR but the precondition of Get_Identifier is:
Pre => Kind (I) in I_C_Enum_Member
| I_C_Enum_Tag_Type
| I_Code_Parameter
| I_Struct_Tag_Type
| I_Symbol_Expr
| I_Symbol_Type
| I_Union_Tag_Type;

… of enumerations

gnat2goto currently fails precondition from reps.ads:1655
Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

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

It is good to have a test for this, even if it is one that fails.

@martin-cs martin-cs merged commit 7d755cc into diffblue:master Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants