Consider supporting assert (expression) by (spinoff)
#872
utaal
started this conversation in
Language design
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggested by @jaybosamiya as a prover performance management tool.
We have discussed offline what context would be auto-imported, and @jaybosamiya suggests we may want to implicitly import anything that had been explicitly
assert
ed and the post-conditions of function calls in the preceding code. Importing all the learned facts from the outer context isn't technically possible, as those are part of prover state for a specific query. That is (as @tjhance says), we wouldn't import "things that Z3 deduces while proving earlier asserts, but which it wouldn't have in context if it just assumes them".@jaybosamiya:
@utaal is a little worried from a user experience perspective that the imported context would be implicitly anything that's been asserted and the postconditions of function calls. This would not be spelled out in one place. Changing the preceding program would break the spunoff assert, and it wouldn't be clear what you missed. But that may still be okay in practice for the advanced users that would need this tool.
Beta Was this translation helpful? Give feedback.
All reactions