1/15
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Compositional Verification Principle
Verification of methods individually
Postcondition checked after call
Precondition checked at each call
Supports modular reasoning.
Method Call Verification
For call inc(x), checks preconditions
Caller precondition implies callee's precondition
Postcondition assumed about return values.
Example 1 Verification Result
Example 2 Verification Result
Max Method Specification
Max Method Assertion Failure
Max Method Loop Invariant Needed
Square Method by Sum of Odds
Square Method Loop Invariant
Loop Invariant for Max
Dafny Assertion Verification
Array Element Assignment
New Array Creation
Method Parameter Immutability
Loop Invariant Necessity
Termination Proof via Decrease