flowchart TD
1[x>=0] --> 2[z+u*y = x*y & u >=0] --> 4[z = x*y]
Annotations and correctness
Sequential composition
Array as a partial function
array is a function where is a ‘small’ range of integers and is the type of array element
alter function (x; E:F)
is defined by
For example:
Given array x
:
S is the sum(0..k) → loop invariant