Please enable JavaScript.
Coggle requires JavaScript to display documents.
Implementation, Loops - Coggle Diagram
Implementation
-
Static components
-
IMPORTS, SEES and PROMOTES
-
-
-
-
-
-
Loops
To guarantee correctness, we have to ensure:
-
Provided that the invariant and the loop guard are true, the body of the loop establishes the loop invariant
Provided that the invariant is true and that the loop guard is false, we can guarantee the post-condition of the loop
-
To guarantee termination, we have to ensure:
-
Provided that the invariant and the loop guard are true, the body of the loop decreases the variant
-
-