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
if i were to do it i'll probably add an extra field inside a phantom register called lastBoolTransformation: string
which is set (with the code snippet before it was converted into a bool) whenever a number is cast into a bool via an operation
and then i'd add an extra parameter to getPop called shouldReturnBool and inside the function, if:
a phantom register is on the stack AND
lastBoolTransformation is set, return lastBoolTransformation
otherwrise, return (${phantomReg.value}) as normal
and in br_if, use that added parameter in getPop lastBoolTransformation is guaranteed to be only written once because phantom registers should only ever be assigned to once
The text was updated successfully, but these errors were encountered:
(copied from discord)
The text was updated successfully, but these errors were encountered: