mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
335 B
Solidity
14 lines
335 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
function f(address c) public view {
|
|
address a = msg.sender;
|
|
address b = msg.sender;
|
|
assert(a == b);
|
|
assert(c == msg.sender);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6328: (155-178): CHC: Assertion violation happens here.\nCounterexample:\n\nc = 38\n\nTransaction trace:\nC.constructor()\nC.f(38)
|