1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/test/Reg/Transformation.hs
Łukasz Czajka 49678b4e54
JuvixReg transformation: initialize variables assigned in other branches (#2650)
* Closes #2576 
* Adds a JuvixReg transformation `InitBranchVars` which inserts
assignments to initialize variables assigned in other branches. Assumes
the input is in SSA form (which is preserved).
* Adds tests for the `InitBranchVars` transformation.
* Depends on #2647
2024-02-23 11:20:11 +00:00

16 lines
375 B
Haskell

module Reg.Transformation where
import Base
import Reg.Transformation.Identity qualified as Identity
import Reg.Transformation.InitBranchVars qualified as InitBranchVars
import Reg.Transformation.SSA qualified as SSA
allTests :: TestTree
allTests =
testGroup
"JuvixReg transformations"
[ Identity.allTests,
SSA.allTests,
InitBranchVars.allTests
]