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

16 lines
339 B
Solidity
Raw Normal View History

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-31 15:11:54 +00:00
// SMTEngine: all
// SMTIgnoreCex: yes
// ----
2021-03-31 15:11:54 +00:00
// Warning 6328: (196-210): CHC: Assertion violation happens here.