Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotated core nodes #342

Merged
merged 5 commits into from
Sep 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bugfix: Ignore Do NodeIDs when constructing the CFG
  • Loading branch information
simonjwinwood committed Sep 15, 2023
commit f94af1b50c2395f5d3b045400cf8ed605af973bc
2 changes: 1 addition & 1 deletion daedalus-core/src/Daedalus/Core/CFG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ cfgG m_x exitN (WithNodeID inN _anns g) =
goOr biased lhs rhs = do
lN <- cfgG m_x exitN lhs
rN <- cfgG m_x exitN rhs
emitNode (COr biased lN rN)
emitNode (COr biased lN rN) $> lN -- Ignore id of Do, use the id of the first non-do in the AST.

simple n = emitNode (CSimple m_x n exitN)
emitNode node = tell (Map.singleton inN node) $> inN
Expand Down