Added a couple of notes about replicators

This commit is contained in:
Neil Brown 2008-01-28 17:36:43 +00:00
parent ebf99b08e0
commit 78a29de1d4
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,8 @@ joinCheckParFunctions f g x = seqPair (f x, g x)
checkPar :: forall m a b. Monad m => ((Meta, ParItems a) -> m b) -> FlowGraph m a -> [m b]
checkPar f g = map f allParItems
where
-- TODO deal with replicators
allStartParEdges :: Map.Map Int [(Node,Node)]
allStartParEdges = foldl (\mp (s,e,n) -> Map.insertWith (++) n [(s,e)] mp) Map.empty $ mapMaybe tagStartParEdge $ labEdges g

View File

@ -287,6 +287,7 @@ buildFlowGraph funcs s
addEdge ESeq n s
addEdge ESeq e n'
return (n,n')
-- TODO replicator
buildStructured _ s _ = do n <- addDummyNode (findMeta s)
return (n,n)