aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/eliminate-dead-code/alive-code/for-for-break-end-alive
blob: 65233527de5e7cd38ecc9e4bdc52e92618c59656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
for 1 to 2 as \1
  for 1 to 2 as \2
    break
  end for
  <alive> : "code"
end for

# (for (@ 1 0-3) ‘1’ ‘2’ (.variable ‘\1’)
#   (.inner
#     (for (@ 2 2-5) ‘1’ ‘2’ (.variable ‘\2’)
#       (.inner
#         (break (@ 3 4-9))
#       )
#     )
#     (map (@ 5 2-2)
#       (.sequence
#         (keys (@ 5 2-9) ‘<alive>’)
#       )
#       (.result
#         (string (@ 5 12-18) ‘"code"’)
#       )
#     )
#   )
# )