-
Notifications
You must be signed in to change notification settings - Fork 27
CBMC: State + prove spec for poly_sub
#308
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
Comments
From the experience with |
mkannwischer
added a commit
that referenced
this issue
Nov 5, 2024
Resolves #308 Signed-off-by: Matthias J. Kannwischer <[email protected]>
mkannwischer
added a commit
that referenced
this issue
Nov 5, 2024
This first changes poly_sub from the 3 argument form poly_sub(r, a, b) to a two argument form poly_sub(r, b) assuming that r=a. This makes the proof possible as we do not have to reason about aliasing. Unfortunately, currently we have poly_sub(x, a, x) rather than poly_sub(x, x, a) in the single call site in indcpa_dec. However, it is easy to change it there. Resolves #308 Signed-off-by: Matthias J. Kannwischer <[email protected]>
mkannwischer
added a commit
that referenced
this issue
Nov 5, 2024
This first changes poly_sub from the 3 argument form poly_sub(r, a, b) to a two argument form poly_sub(r, b) assuming that r=a. This makes the proof possible as we do not have to reason about aliasing. Unfortunately, currently we have poly_sub(x, a, x) rather than poly_sub(x, x, a) in the single call site in indcpa_dec. However, it is easy to change it there. Resolves #308 Signed-off-by: Matthias J. Kannwischer <[email protected]>
potsrevennil
pushed a commit
that referenced
this issue
Nov 6, 2024
This first changes poly_sub from the 3 argument form poly_sub(r, a, b) to a two argument form poly_sub(r, b) assuming that r=a. This makes the proof possible as we do not have to reason about aliasing. Unfortunately, currently we have poly_sub(x, a, x) rather than poly_sub(x, x, a) in the single call site in indcpa_dec. However, it is easy to change it there. Resolves #308 Signed-off-by: Matthias J. Kannwischer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Not quite the same as
poly_add
because of different aliasing:poly_sub
is used aspoly_sub(x,y,x)
. Otherwise, it should be the same as forpoly_add
, which is done in #306The text was updated successfully, but these errors were encountered: