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

Build the dependency graph only after establishing all connections #54

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Oct 10, 2023

This fixes a range of bugs that occur in programs using enclaves. The dependency graph of enclaves was build before all connections were created. This lead to out of order execution for some reactions.

This PR ensures that we first assemble all reactors (also those in enclaves), then construct the connections, and finally analyze dependencies and calculate reaction indices.

@cmnrd cmnrd added the bugfix label Oct 10, 2023
@cmnrd cmnrd requested a review from tanneberger October 10, 2023 09:29
@cmnrd cmnrd merged commit 3b25ffe into master Oct 10, 2023
8 checks passed
@cmnrd cmnrd deleted the assemble-fix branch October 10, 2023 10:42
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Oct 10, 2023
This pulls in lf-lang/reactor-cpp#54 and adds a couple
of testcases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant