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
{{ message }}
Repository navigation
Incorrect if/else result when a loop in a branch reassigns the condition variable #2156
The first flag starts as 1, so the first result should be 11. Clearing flag inside the loop should not change which result is selected.
The reverse case fails too. Moving the loop into the else branch and setting flag = 1 there gives [11, 11]. A while loop behaves the same way. The output is correct when n is 0, or when the loop uses a constant count such as range(1).
Reproduced with Warp 1.12.0, 1.17.0, and 1.18.0 on CPU and CUDA, in both release and debug modes, using Linux and Python 3.12.
Activity