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

expressions inside statements #6

Open
bstee615 opened this issue Jun 20, 2022 · 0 comments
Open

expressions inside statements #6

bstee615 opened this issue Jun 20, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bstee615
Copy link
Owner

bstee615 commented Jun 20, 2022

Add expressions inside statements to the CFG, such as if ((i = 0) == 0).
Some CFGs collapse all operations within a statement, line, or basic block into one node. In order to make our representation flexible for different uses, I want to represent each operation as its own node (fine-grained CFG) and optionally post-process nodes in the fine-grained CFG into basic blocks.
Currently these are not present in the CFG.
To do it, add a visitor method to CFGCreator https://github.com/bstee615/tree-sitter-cfg/blob/master/tree_sitter_cfg/cfg_creator.py#L9.

@bstee615 bstee615 added enhancement New feature or request good first issue Good for newcomers labels Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant