SLIDE 1
Loop Invariant
- Def’n: A boolean condition that is checked
c } false loop body P (postcondition) Loop Invariant Defn : A - - PowerPoint PPT Presentation
while (c) { loop body true c } false loop body P (postcondition) Loop Invariant Defn : A boolean condition that is checked immediately before every evaluation of the loop guard . while (c) I //@loop_invariant I; true c { loop
I
I
I
I