Example with more-formal Logic
l
A searching program:
l
Input assertion:
l
a == a
0
l
Output assertion:
l
a == a
0
and
l
((
$
i) a[i] == v)
¨
a[m] == v, and
l
((
"
i) a[i] != v)
¨
m == -1