mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
317 B
Solidity
22 lines
317 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
function f(uint _x) public pure returns (uint) {
|
|
return _x;
|
|
}
|
|
}
|
|
|
|
contract D
|
|
{
|
|
C c;
|
|
function g(uint _y) public view {
|
|
uint z = c.f(_y);
|
|
assert(z == _y);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTIgnoreCex: yes
|
|
// ----
|
|
// Warning 6328: (191-206): CHC: Assertion violation happens here.
|