Closed Subway2023 closed 1 month ago
Similar to 14983, the SMTChecker cannot evaluate the results of these functions
contract test { function f()public returns (int) { bytes memory t0="1"; bytes memory t1="1"; bytes32 a=ripemd160(t0); bytes32 b=ripemd160(t1); assert(a==b); } }
contract test { function f()public returns (int) { bytes memory t0="1"; bytes memory t1="1"; bytes32 a=sha256(t0); bytes32 b=sha256(t1); assert(a==b); } }
This has the same underlying issue as #14983 and has been fixed by #15050. At develop, and in the latest release, v0.8.26, SMTChecker already proves this assertions safe.
develop
v0.8.26
Description
Similar to 14983, the SMTChecker cannot evaluate the results of these functions
Environment
Steps to Reproduce