2020-10-13 16:00:26 +00:00
|
|
|
contract C {
|
|
|
|
function f(bytes memory data) public pure {
|
|
|
|
bytes32 k = keccak256(data);
|
|
|
|
fi(data, k);
|
|
|
|
}
|
|
|
|
function fi(bytes memory data, bytes32 k) internal pure {
|
|
|
|
bytes32 h = sha256(data);
|
|
|
|
assert(h == k);
|
|
|
|
}
|
|
|
|
}
|
2021-03-16 12:11:24 +00:00
|
|
|
// ====
|
2021-03-31 15:11:54 +00:00
|
|
|
// SMTEngine: all
|
2021-03-16 12:11:24 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2020-10-13 16:00:26 +00:00
|
|
|
// ----
|
2021-11-23 17:08:36 +00:00
|
|
|
// Warning 1218: (196-210): CHC: Error trying to invoke SMT solver.
|
|
|
|
// Warning 6328: (196-210): CHC: Assertion violation might happen here.
|
|
|
|
// Warning 4661: (196-210): BMC: Assertion violation happens here.
|