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

OutlineCfg rewrite returns new BB and CFG nodes #554

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

acl-cqc
Copy link
Contributor

@acl-cqc acl-cqc commented Sep 22, 2023

This seems like a good use of the facility for a rewrite to return a rewrite-specific result, and preliminary to other upcoming PRs (specifically #247)

The new CFG node is non-trivial to find given its parent (basic block) as that has several children: not only Input and Output but also constant nodes to build the predicate.

.unwrap();
h.validate(&PRELUDE_REGISTRY).unwrap();
let new_entry = h.children(h.root()).next().unwrap();
assert_eq!(new_block, h.children(h.root()).next().unwrap());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new_entry, although correct, could also suggest the entry node inside the new sub-cfg, hence "renaming" to new_block

@acl-cqc acl-cqc changed the title OutlineCfg rewrite returns new BB and cfg node OutlineCfg rewrite returns new BB and CFG nodes Sep 25, 2023
@acl-cqc acl-cqc added this pull request to the merge queue Sep 25, 2023
Merged via the queue into main with commit a9fdcaa Sep 25, 2023
6 checks passed
@acl-cqc acl-cqc deleted the new/outline_cfg_returns_blocks branch September 25, 2023 09:10
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.

2 participants