You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The decompiler decompiles the following code (ref: decompiler test case vector.move)
publicfuncontains<Element>(self: &vector<Element>, e: &Element): bool {
let i = 0;
let len = length(self);
while (i < len) {
if (borrow(self, i) == e) returntrue;
i = i + 1;
};
false
}
The function will always return true, deviating from the original code. There are many similar cases. This bug is attributed to some issues in the initial control flow structuring.