2024-02-13 22:34:32 +03:00
|
|
|
---
|
|
|
|
source: tests/golden_tests.rs
|
2024-05-15 01:25:46 +03:00
|
|
|
input_file: tests/golden_tests/simplify_matches/flatten_with_terminal.bend
|
2024-02-13 22:34:32 +03:00
|
|
|
---
|
2024-05-29 10:15:13 +03:00
|
|
|
(Foo) = λa switch a { 0: λb let c = b; match c { A_t/A d: match d { B_t/B: B_t/B; }; }; _ e: λf let g = f; *; }
|
2024-02-13 22:34:32 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(main) = (Foo 2 (A_t/A B_t/B))
|
2024-02-13 22:34:32 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(A_t/A) = λa λb (b A_t/A/tag a)
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(B_t/B) = λa (a B_t/B/tag)
|
|
|
|
|
|
|
|
(A_t/A/tag) = 0
|
|
|
|
|
|
|
|
(B_t/B/tag) = 0
|