mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
274 B
Solidity
13 lines
274 B
Solidity
uint constant x = 42;
|
|
|
|
contract C {
|
|
function f() public pure {
|
|
uint z = x;
|
|
assert(z == 41);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// ----
|
|
// Warning 6328: (80-95): CHC: Assertion violation happens here.\nCounterexample:\n\nz = 42\n\nTransaction trace:\nC.constructor()\nC.f()
|