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

Relax length precondition of To_Context #1054

Closed
treiher opened this issue May 25, 2022 · 0 comments · Fixed by #1060
Closed

Relax length precondition of To_Context #1054

treiher opened this issue May 25, 2022 · 0 comments · Fixed by #1060
Assignees
Labels
bug generator Related to generator package (SPARK code generation)

Comments

@treiher
Copy link
Collaborator

treiher commented May 25, 2022

Currently, one of the preconditions of To_Context is that the length of the buffer of the context must be at least as long as the longest possible message. This is unnecessarily restrictive. It should be possible to calculate the concrete length of the message in Struct and use this value in the precondition.

Additionally, in the generated session code, the length condition should be checked before calling To_Context.

@treiher treiher added bug generator Related to generator package (SPARK code generation) labels May 25, 2022
@treiher treiher self-assigned this May 25, 2022
@treiher treiher added this to To do in RecordFlux 0.6 via automation May 25, 2022
@treiher treiher moved this from To do to Implementation in RecordFlux 0.6 May 25, 2022
treiher added a commit that referenced this issue May 31, 2022
treiher added a commit that referenced this issue May 31, 2022
treiher added a commit that referenced this issue May 31, 2022
treiher added a commit that referenced this issue Jun 1, 2022
treiher added a commit that referenced this issue Jun 1, 2022
@treiher treiher moved this from Implementation to Review in RecordFlux 0.6 Jun 1, 2022
treiher added a commit that referenced this issue Jun 1, 2022
treiher added a commit that referenced this issue Jun 1, 2022
RecordFlux 0.6 automation moved this from Review to Done Jun 1, 2022
treiher added a commit that referenced this issue Jun 1, 2022
treiher added a commit that referenced this issue Jun 1, 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.

1 participant