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/nested.bend
2024-02-13 22:34:32 +03:00
---
2024-05-10 22:42:32 +03:00
(Rule) = λa match a { Foo/CtrA b c: (match c { Bar/CtrB1 d: λe (e d); Bar/CtrB2 f g: λh (match f { Baz/CtrC: λi λj (i j); } h g); } b); Foo/CtrB k: k; }
2024-02-13 22:34:32 +03:00
2024-05-27 21:09:23 +03:00
(Foo/CtrA) = λa λb λc (c Foo/CtrA/tag a b)
2024-02-13 22:34:32 +03:00
2024-05-27 21:09:23 +03:00
(Foo/CtrB) = λa λb (b Foo/CtrB/tag a)
2024-02-13 22:34:32 +03:00
2024-05-27 21:09:23 +03:00
(Bar/CtrB1) = λa λb (b Bar/CtrB1/tag a)
2024-02-13 22:34:32 +03:00
2024-05-27 21:09:23 +03:00
(Bar/CtrB2) = λa λb λc (c Bar/CtrB2/tag a b)
2024-02-13 22:34:32 +03:00
2024-05-27 21:09:23 +03:00
(Baz/CtrC) = λa (a Baz/CtrC/tag)
(Foo/CtrA/tag) = 0
(Foo/CtrB/tag) = 1
(Bar/CtrB1/tag) = 0
(Bar/CtrB2/tag) = 1
(Baz/CtrC/tag) = 0