Skip to content

Commit

Permalink
handling _default in freshBundle CaseE
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtimmy committed Feb 21, 2024
1 parent 24b33ba commit 55373d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions gibbon-compiler/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ demo/*.c
demo/*.exe
gibbon-compiler/examples/parallel/data/*.txt
*.log.hs
*.log
3 changes: 0 additions & 3 deletions gibbon-compiler/IR.log

This file was deleted.

4 changes: 3 additions & 1 deletion gibbon-compiler/src/Gibbon/Passes/FreshBundle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ findFreshInExp exp defenv funenv constrenv =
CaseE e mp -> do
e' <- findFreshInExp e defenv funenv constrenv
mp' <- mapM (\(c,prs,ae) -> do
let c' = (fromVar (findFreshedName (toVar c) constrenv))
let c' = case c of
"_default" -> c
_ -> (fromVar (findFreshedName (toVar c) constrenv))
ae' <- findFreshInExp ae defenv funenv constrenv
return (c', prs, ae')) mp
return $ CaseE e' mp'
Expand Down

0 comments on commit 55373d2

Please sign in to comment.