aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/eliminate-dead-code/alive-code/for-function-return-end-alive
blob: 7a02539ea010b7323f26c0e425f731cfbd86b2f7 (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
  function f/0
    return
  end function
  <alive> : "code"
end for

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