flowchart TD 1[x>=0] --> 2[z+u*y = x*y & u >=0] --> 4[z = x*y]
Annotations and correctness
--- title: correctness assertion --- stateDiagram-v2 direction LR P --> Q: S
rules for correctness
If
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