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
In translated code for local mutually tail-recursive functions, switch case is incorrectly falling over instead of terminating with a break and continuing the while loop.
Failing example:
lettailRecursionOptimizerBug()=let recf x =if x =0then g x 1else f (x -1)andg x y =
x + y
f 5
Should return 1 but returns NaN.
The text was updated successfully, but these errors were encountered:
In translated code for local mutually tail-recursive functions,
switch
case is incorrectly falling over instead of terminating with abreak
and continuing thewhile
loop.Failing example:
Should return
1
but returnsNaN
.The text was updated successfully, but these errors were encountered: