4. The maximum value
$$
\scriptsize
\begin{array}{l}
\{\,\,true\,\,\} \\
\texttt{if}\,\,\,x\ge y\,\,\,\texttt{then} \\
~~~~~~ m := x \\
\texttt{else} \\
~~~~~~ m := y \\
\{\,\,m = max(x, y)\,\,\}
\end{array}
$$
Assume that for all $x$ and $y$ we have $x\ge y \rightarrow max(x,y)=x$