Files
contract/example/features/inc_no_contract.cpp
2015-06-27 08:03:34 -07:00

12 lines
206 B
C++

//[inc_no_contract
int inc(int& x)
// Precondition: x < std::numeric_limits<int>::max()
// Postcondition: x == oldof(x) + 1
// result == oldof(x)
{
return x++;
}
//]