Repository navigation
Add zero-init, and put it behind an unsound feature flag - #1521
Conversation
22c3327 to
eb0d9ec
Compare
celinval
left a comment
There was a problem hiding this comment.
If I recall this correctly, we had agreed to put unsound stuff behind a compilation flag instead of a switch.
8277f78 to
4314f3d
Compare
celinval
left a comment
There was a problem hiding this comment.
I have mixed feelings about this one. It might be nice to get a second opinion... (@zhassan-aws?)
Honestly, I would like us to have a better defined story for how we should handle under-approximations. For example, how can we reflect the possibly unsound results in the verification report.
I was also hoping that an experimental change would be more contained too.
What if instead of adding --enable-unsound-experiments --zero-init-vars you add something like --enable-unsound-experiments=[zero-init-vars | <other_opt>]+. This will allow a more generic parser code, and the next experimental feature would only need to add a new value instead of adding new switches everywhere.
|
I forgot to mention, but it might be nice to add an expected test that ensures that this feature is not available in the release mode. |
zhassan-aws
left a comment
There was a problem hiding this comment.
This looks good overall. I agree with @celinval, that the --enable-unsound-experiments option should not be needed since the whole package would have been built with this feature enabled.
I also think we should clearly indicate in the report that the results may be unsound. We don't need to go as far as changing every "SUCCESS" in the results to something else, but we should at least print at the beginning and end of the report something along the lines of:
WARNING: The specified `--zero-init-vars` option may result in false proofs.
Results:
....
VERIFICATION:- SUCCESSFUL
***Note: The results above may be unsound due to the usage of the `--zero-init-vars` option.
Unblocking the PR after the last round of changes. Thanks!
72c2178 to
a475278
Compare
a475278 to
d036e25
Compare
11553b1 to
1bfb807
Compare
|
The refactoring to move all unsound experimental code to a separate module made things much cleaner. Thanks! |
Description of changes:
Resolved issues:
Resolves #1493
Call-outs:
Using this may improve performance, at a potential soundness cost. Since the tradeoff is not clear, putting it behind a flag to allow experimentation, but keeping the current default for now.
Depends on #1520
Testing:
How is this change tested?
Is this a refactor change? No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.