-
Notifications
You must be signed in to change notification settings - Fork 6
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
Projects
Comments
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
added a commit
that referenced
this issue
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
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
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 inStruct
and use this value in the precondition.Additionally, in the generated session code, the length condition should be checked before calling
To_Context
.The text was updated successfully, but these errors were encountered: