2024-03-27 17:22:12 +03:00
|
|
|
---
|
|
|
|
source: tests/golden_tests.rs
|
2024-05-15 01:25:46 +03:00
|
|
|
input_file: tests/golden_tests/desugar_file/deref_loop.bend
|
2024-03-27 17:22:12 +03:00
|
|
|
---
|
2024-05-18 15:01:20 +03:00
|
|
|
(foo) = λa (a foo__C1)
|
2024-03-27 17:22:12 +03:00
|
|
|
|
|
|
|
(bar) = (foo 1)
|
|
|
|
|
|
|
|
(main) = (foo 0)
|
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(nat/succ) = λa λb (b nat/succ/tag a)
|
2024-03-27 17:22:12 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(nat/zero) = λa (a nat/zero/tag)
|
|
|
|
|
|
|
|
(nat/succ/tag) = 0
|
|
|
|
|
|
|
|
(nat/zero/tag) = 1
|
2024-03-27 17:22:12 +03:00
|
|
|
|
2024-05-18 15:01:20 +03:00
|
|
|
(foo__C0) = λ* (bar 0)
|
|
|
|
|
|
|
|
(foo__C1) = λa switch a { 0: λb b; _: foo__C0; }
|