Skip to content
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

Unprovable code for message with field condition #961

Closed
kanigsson opened this issue Mar 17, 2022 · 0 comments · Fixed by #969
Closed

Unprovable code for message with field condition #961

kanigsson opened this issue Mar 17, 2022 · 0 comments · Fixed by #969
Assignees
Labels
bug generator Related to generator package (SPARK code generation)

Comments

@kanigsson
Copy link
Collaborator

RFLX generates unprovable code for the procedure To_Context (at least) for the following message:

package Cond is
   type A is mod 2 ** 32;
   type B is mod 2 ** 8;

   type Cond_Msg is
      message
         F1 : A
            then F2
               if F1 = 0;
         F2 : B;
      end message;
end Cond;

The issue is that F1 must be 0 to be able to set it, but the To_Context function has no precondition that would enforce this.

@kanigsson kanigsson added the bug label Mar 17, 2022
@treiher treiher added the generator Related to generator package (SPARK code generation) label Mar 17, 2022
@treiher treiher added this to To do in RecordFlux 0.6 via automation Mar 17, 2022
@treiher treiher self-assigned this Mar 25, 2022
@treiher treiher moved this from To do to Implementation in RecordFlux 0.6 Mar 25, 2022
@treiher treiher moved this from Implementation to Review in RecordFlux 0.6 Apr 1, 2022
RecordFlux 0.6 automation moved this from Review to Done Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug generator Related to generator package (SPARK code generation)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants