Skip to content

Commit

Permalink
Remove redundant GraphConfig field from Graph-Based EvalGaloisConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
min-nguyen committed Sep 27, 2023
1 parent 3ff3c3a commit 4c1b0f9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/EvalGraph.purs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ eval_module γ = go D.empty
go (γ' <+> γ'') (Module ds) αs

type EvalGaloisConnection g a b = GaloisConnection a b
( gconfig :: GraphConfig g
, :: Expr Vertex
( :: Expr Vertex
, g :: g
, :: Val Vertex
)
Expand All @@ -188,7 +187,7 @@ graphGC
=> GraphConfig g
-> Raw Expr
-> m (EvalGaloisConnection g (Set Vertex) (Set Vertex))
graphGC gconfig@{ g, n, γα } e = do
graphGC { g, n, γα } e = do
(g' × _) × eα × vα <- do
runWithGraphAllocT (g × n) $ do
<- alloc e
Expand All @@ -198,4 +197,4 @@ graphGC gconfig@{ g, n, γα } e = do
fwd αs = G.vertices (fwdSlice αs g') `intersection` vertices vα
-- TODO: want (vertices eα `union` foldMap vertices γα) rather than sinks g' here?
bwd αs = G.vertices (bwdSlice αs g') `intersection` sinks g'
pure { gconfig, eα, g: g', vα, fwd, bwd }
pure { eα, g: g', vα, fwd, bwd }

0 comments on commit 4c1b0f9

Please sign in to comment.