projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1730303
)
Add a BindMap argument to flattenExpr.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Fri, 6 Feb 2009 11:23:25 +0000
(12:23 +0100)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Fri, 6 Feb 2009 11:23:25 +0000
(12:23 +0100)
Flatten.hs
patch
|
blob
|
history
diff --git
a/Flatten.hs
b/Flatten.hs
index ee70446eaf5ed1b39ff56630b107a49f07fd1077..0ee9595cbf1f3072ddec2e9099370a6e86fe304a 100644
(file)
--- a/
Flatten.hs
+++ b/
Flatten.hs
@@
-108,15
+108,17
@@
flattenFunction hsfunc bind@(NonRec var expr) =
FlatFunction args res apps conds
where
init_state = ([], [], 0)
- (fres, end_state) = State.runState (flattenExpr expr) init_state
+ (fres, end_state) = State.runState (flattenExpr
[]
expr) init_state
(args, res) = fres
(apps, conds, _) = end_state
flattenExpr ::
- CoreExpr
+ BindMap
+ -> CoreExpr
-> FlattenState ([SignalDefMap], SignalUseMap)
-flattenExpr _ = do
+
+flattenExpr _ _ = do
return ([], Tuple [])