arc: cursors for simple for loop variables (#15008)

* arc: cursors for simple for loop variables

* merged devel
This commit is contained in:
Andreas Rumpf 2020-07-17 15:24:36 +02:00 • committed by GitHub
commit d4984e069a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 52 additions and 7 deletions

View file

@ -28,13 +28,13 @@ var
try:
x = f()
block :tmp:
var i
var i_cursor
var i_1 = 0
block :tmp_1:
while i_1 < 4:
var :tmpD
i = i_1
if i == 2:
i_cursor = i_1
if i_cursor == 2:
return
add(a):
wasMoved(:tmpD)