mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
1.0 KiB
Solidity
24 lines
1.0 KiB
Solidity
contract C {
|
|
function f(bytes memory data) public pure {
|
|
bytes32 k = keccak256(data);
|
|
bytes32 s = sha256(data);
|
|
bytes32 r = ripemd160(data);
|
|
assert(k == s);
|
|
assert(s == r);
|
|
assert(r == k);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// SMTIgnoreCex: yes
|
|
// ----
|
|
// Warning 1218: (150-164='assert(k == s)'): CHC: Error trying to invoke SMT solver.
|
|
// Warning 1218: (168-182='assert(s == r)'): CHC: Error trying to invoke SMT solver.
|
|
// Warning 1218: (186-200='assert(r == k)'): CHC: Error trying to invoke SMT solver.
|
|
// Warning 6328: (150-164='assert(k == s)'): CHC: Assertion violation might happen here.
|
|
// Warning 6328: (168-182='assert(s == r)'): CHC: Assertion violation might happen here.
|
|
// Warning 6328: (186-200='assert(r == k)'): CHC: Assertion violation might happen here.
|
|
// Warning 4661: (150-164='assert(k == s)'): BMC: Assertion violation happens here.
|
|
// Warning 4661: (168-182='assert(s == r)'): BMC: Assertion violation happens here.
|
|
// Warning 4661: (186-200='assert(r == k)'): BMC: Assertion violation happens here.
|