solidity/test/libsolidity/smtCheckerTests/crypto/crypto_functions_compare_hashes.sol

24 lines
883 B
Solidity
Raw Normal View History

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);
}
}
2020-12-10 13:06:34 +00:00
// ====
2021-03-31 15:11:54 +00:00
// SMTEngine: all
2020-12-10 13:06:34 +00:00
// SMTIgnoreCex: yes
// ----
2021-11-23 17:08:36 +00:00
// Warning 1218: (150-164): CHC: Error trying to invoke SMT solver.
// Warning 1218: (168-182): CHC: Error trying to invoke SMT solver.
// Warning 1218: (186-200): CHC: Error trying to invoke SMT solver.
// Warning 6328: (150-164): CHC: Assertion violation might happen here.
// Warning 6328: (168-182): CHC: Assertion violation might happen here.
// Warning 6328: (186-200): CHC: Assertion violation might happen here.
// Warning 4661: (150-164): BMC: Assertion violation happens here.
// Warning 4661: (168-182): BMC: Assertion violation happens here.
// Warning 4661: (186-200): BMC: Assertion violation happens here.