-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add metadata to while conditions #969
Conversation
ad2c697
to
15905aa
Compare
In addition to improving location information on guards of while loops and instructions emitted by lowering to implement them, this change allows to easily attach fixed points on while loops when doing analyses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not spot anything fishy except one thing.
And can you mention in the commit message the part about the two infos for while?
proofs/compiler/arm_lowering.v
Outdated
let c0' := conc_map lower_i c0 in | ||
let c1' := conc_map lower_i c1 in | ||
[:: MkI ii (Cwhile a (c0' ++ map (MkI ii) pre) e' c1') ] | ||
[:: MkI ii (Cwhile a (c0' ++ map (MkI ii) pre) e' info c1') ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[:: MkI ii (Cwhile a (c0' ++ map (MkI ii) pre) e' info c1') ] | |
[:: MkI ii (Cwhile a (c0' ++ map (MkI info) pre) e' info c1') ] |
I think it should be info
like was done for x86?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted. Fixed.
Thanks Jean-Christophe for your review. I’ve rephrased the changelog message and rebased on top of recent |
adding a new parameter to Prog.While to include an i_loc (useful for bug fixes)
d557f0e
to
6d4f6ae
Compare
Fixes #902.
Needs: