Content deleted Content added
Line 145:
<syntaxhighlight lang="cpp">
int f(const int x)
pre
post(r : r == x && r != 2) // a postcondition assertion; r names the result object of f
{
contract_assert
return x;
}
|
Line 145:
<syntaxhighlight lang="cpp">
int f(const int x)
pre
post(r : r == x && r != 2) // a postcondition assertion; r names the result object of f
{
contract_assert
return x;
}
|