Skip to content

Improve cfg visitor - #139

Merged
jecisc merged 4 commits into
v3from
improve-cfg-visitor
Aug 6, 2026
Merged

Improve cfg visitor#139
jecisc merged 4 commits into
v3from
improve-cfg-visitor

Conversation

@jecisc

@jecisc jecisc commented Aug 5, 2026

Copy link
Copy Markdown
Member

Instead of doing a visit depth first, I visit a full conditional block before visiting the following blocks. Then I restart the visit from the merge point.

I also added hooks to avoid code duplication if we need to add behavior during the visit

jecisc added 4 commits August 3, 2026 19:34
…t nodes in different visit methods

This will be useful to update the way we visit the CFG. The goal is to visit all nodes inside a conditional before visiting the next nodes after the conditional. This is not done yet but this is my goal
…tional before its following blocks and introduce hooks on conditionals visits
When we have a default case in a switch, the visitor was trying to visit a non existing pattern. I added a guard
@jecisc
jecisc merged commit 63eabf8 into v3 Aug 6, 2026
6 checks passed
@jecisc
jecisc deleted the improve-cfg-visitor branch August 6, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant