1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-05 22:46:08 +03:00
juvix/test/Core
Łukasz Czajka dd16274a24
Restrict permutative conversions on cases to non-booleans (#2201)
* Restricts permutative conversions for case-expressions to
non-booleans. This reduces the blow-up a bit.

  Permutative conversions rewrite
  ```
  case (case M | C1 -> A1 | C2 -> A2)
  | D1 -> B1
  | D2 -> B2
  ```
  to
  ```
  case M
  | C1 -> case A1
              | D1 -> B1
              | D2 -> B2
  | C2 -> case A2
              | D1 -> B1
              | D2 -> B2
  ```

It is necessary to perform them for non-boolean A1/A2 to obtain the
right kind of normal forms.

* Adds a test demonstrating the necessity of permutative conversions for
non-booleans.
2023-06-19 11:57:12 +02:00
..
Asm Add Bottom node (#2112) 2023-05-23 18:31:28 +02:00
Compile Add Bottom node (#2112) 2023-05-23 18:31:28 +02:00
Eval Respect fixity in runtime printer (#2182) 2023-06-07 11:44:41 +02:00
Normalize Restrict permutative conversions on cases to non-booleans (#2201) 2023-06-19 11:57:12 +02:00
Print Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Recursor Fix de Bruijn indices in rmap (#1898) 2023-03-17 13:11:36 +01:00
Transformation Add Bottom node (#2112) 2023-05-23 18:31:28 +02:00
VampIR VampIR integration (#2103) 2023-05-22 20:18:18 +02:00
Asm.hs JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Compile.hs JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Eval.hs Add internal core read command (#1517) 2022-09-06 15:26:48 +02:00
Normalize.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Print.hs Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
Recursor.hs The rmap recursor (#1893) 2023-03-16 14:47:21 +01:00
Transformation.hs Recursion unrolling for functions (#1912) 2023-03-24 15:05:37 +01:00
VampIR.hs Implement core transformation let-hoisting (#2076) 2023-05-16 13:42:44 +02:00