Write a multi-module program where:
- Module A exports a function with a strong postcondition
- Module B imports it and relies on that postcondition in its own precondition
- The full chain verifies end-to-end
Then test what happens when Module A's contract is weakened — does Module B's verification correctly fail?
This stress-tests the cross-module contract propagation path (vera/verifier.py + vera/resolver.py), which is important for any real multi-file program.
Write a multi-module program where:
Then test what happens when Module A's contract is weakened — does Module B's verification correctly fail?
This stress-tests the cross-module contract propagation path (
vera/verifier.py+vera/resolver.py), which is important for any real multi-file program.