2020-05-14 18:09:52 +00:00
|
|
|
abstract contract Crypto {
|
|
|
|
function hash(bytes32) external pure virtual returns (bytes32);
|
|
|
|
}
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
address owner;
|
|
|
|
bytes32 sig_1;
|
|
|
|
bytes32 sig_2;
|
|
|
|
Crypto d;
|
|
|
|
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor() {
|
2020-05-14 18:09:52 +00:00
|
|
|
owner = msg.sender;
|
|
|
|
}
|
|
|
|
|
|
|
|
function f1(bytes32 _msg) public {
|
|
|
|
address prevOwner = owner;
|
|
|
|
sig_1 = d.hash(_msg);
|
|
|
|
sig_2 = d.hash(_msg);
|
|
|
|
assert(prevOwner == owner);
|
|
|
|
}
|
|
|
|
|
|
|
|
function inv() public view {
|
|
|
|
assert(sig_1 == sig_2);
|
|
|
|
}
|
|
|
|
}
|
2020-12-02 17:40:48 +00:00
|
|
|
// ====
|
2021-03-31 15:11:54 +00:00
|
|
|
// SMTEngine: all
|
2020-12-02 17:40:48 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2020-05-14 18:09:52 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 6328: (390-412): CHC: Assertion violation happens here.
|