Closed snf closed 12 months ago
Hi @snf, Thanks for the PR, will check it out and let you know what I think.
Can you point me to the contract you're looking at? I know its a frequently seen code pattern, I just want to be working on a common example.
Thanks for having a look, I'm on leave but I'll get a testcase as my current one is too big to use as such.
This tackles a miss-optimization from Solidity that generates code like this:
with the intention of dereferring (ptr - 0x20). This causes Variable_SymbolicValue to saturate the integer instead of returning the right offsets.
The proposed modification to gigahorse is detecting if the integer gets saturated and make the number negative. Open to other potential solutions.