Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lecture 14, Lecture 15 - Coggle Diagram
Lecture 14
Implementation
-
-
-
-
-
b0
-
-
Expressions
-
-
Bool(condition)
-
op(y), +,-,*,/ cannot be used in a condition
Types
-
-
-
-
-
-
-
Concrete Constants: Scalars, Arrays adn Subsets
Lecture 15
Loops
-
Variant
To guarantee Termination
-
Provided that the invariant and its guard are true, the body of the loop decreases the value
-
Example
VAR ii N
ii:=0;
WHILE ii <= 9 DO
tab(ii):=1
ii:=ii + 1
INVARIANT
tab:0..9 --> NAT &
ii: 0..10 &
!xx.(xx:0..(ii-1)=>tab(xx)=1)
VARIANT
10-ii
END
END