Bend/tests/snapshots/simplify_matches__nested_0ary.bend.snap

14 lines
404 B
Plaintext
Raw Permalink Normal View History

---
source: tests/golden_tests.rs
input_file: tests/golden_tests/simplify_matches/nested_0ary.bend
---
2024-05-10 22:42:32 +03:00
(Unpack) = λa λb (match b { list/Cons c d: λe (match d { list/Cons f g: λh λi (h (list/Cons i (list/Cons f g))); list/Nil: λj λk k; } e c); list/Nil: λl list/Nil; } a)
(list/Cons) = λa λb λc (c list/Cons/tag a b)
2024-03-19 20:37:30 +03:00
(list/Nil) = λa (a list/Nil/tag)
(list/Cons/tag) = 0
(list/Nil/tag) = 1