Skip to content

Commit

Permalink
fix Unariser
Browse files Browse the repository at this point in the history
  • Loading branch information
vidsinghal committed Nov 14, 2024
1 parent a12ec8e commit edcb9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gibbon-compiler/src/Gibbon/Passes/Unariser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ unariser Prog{ddefs,fundefs,mainExp} = do
-- perform, from left to right.
type ProjStack = [Int]

unariserExp :: Bool -> DDefs Ty3 -> ProjStack -> Env2 Ty3 -> Exp3 -> PassM Exp3
unariserExp :: Bool -> DDefs Ty3 -> ProjStack -> Env2 Var Ty3 -> Exp3 -> PassM Exp3
unariserExp isTerminal ddfs stk env2 ex =
case ex of
LetE (v,locs,ty,rhs) bod ->
Expand Down Expand Up @@ -232,7 +232,7 @@ unariserExp isTerminal ddfs stk env2 ex =


-- | Flatten nested tuples
flattenProd :: DDefs Ty3 -> ProjStack -> Env2 Ty3 -> Exp3 -> PassM Exp3
flattenProd :: DDefs Ty3 -> ProjStack -> Env2 Var Ty3 -> Exp3 -> PassM Exp3
flattenProd ddfs stk env2 ex =
case ex of
MkProdE{} -> do
Expand Down

0 comments on commit edcb9de

Please sign in to comment.