solidity/test/libsolidity/smtCheckerTests/crypto/crypto_functions_over_blocks.sol
2023-03-09 14:59:32 +01:00

15 lines
385 B
Solidity

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 = keccak256(data);
assert(h == k);
}
}
// ====
// SMTEngine: all
// ----
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.