Incorrect instruction order - optimization bug? #482
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: hanssv
The following contract is incorrectly compiled:
The optimization phase will incorrectly push the
Map.lookup
(let res = state.m[ix]
) past the call to__foo
as is evident by the resulting FATE code:This results in any call to
foo
failing since eitherix
is not there in the first place, or we delete it before looking at it - this is obviously a bug.Created by: hanssv
Problem originally spotted by @brainiacfive