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

Blockstatement ordering #238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Blockstatement ordering #238

wants to merge 2 commits into from

Conversation

polgreen
Copy link
Contributor

@polgreen polgreen commented May 3, 2024

Introduces fresh variables when flattening multiple blocks inside a concurrent block

@polgreen polgreen marked this pull request as draft May 6, 2024 07:56
@polgreen polgreen force-pushed the blockstatement_ordering branch 3 times, most recently from 25ce8f1 to ffbeec7 Compare May 7, 2024 12:34
@polgreen polgreen marked this pull request as ready for review May 9, 2024 11:40
@polgreen
Copy link
Contributor Author

polgreen commented May 9, 2024

Ok, please don't merge yet because I need to tidy up the commit history and add more tests, but this now appears to work.

BlockStmts now have a flag that indicates whether blocks are procedural or concurrent. When two blocks are flattened inside a concurrent block, we create extra variables for any read variables that are written to, to avoid variables being read by one block after they are written to by another.
@polgreen polgreen force-pushed the blockstatement_ordering branch from 70747bb to b0c07a9 Compare May 9, 2024 12:28
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