Files
contract/example/features/no_contracts.cpp
2015-06-30 17:56:22 -07:00

12 lines
203 B
C++

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