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

Witgen: Match machine calls by Bus ID (2) #2488

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

georgwiese
Copy link
Collaborator

No description provided.

.flat_map(|(index, m)| {
m.borrow()
.identity_ids()
.into_iter()
.map(move |id| (id, index))
})
.flat_map(|(index, m)| m.borrow().bus_ids().into_iter().map(move |id| (id, index)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like these are the key changes of this PR. We now use bus_ids instead of identity_ids. However, I wonder for cases that don't use the bus linker mode, such as native permutation and lookups, then we won't have bus_ids? Then how are machine calls linked?

Comment on lines -91 to +88
for connection in &all_connections {
for bus_receive in self.fixed.bus_receives.values() {
// If the RHS only consists of fixed columns, record the connection and continue.
if FixedLookup::is_responsible(connection) {
assert!(fixed_lookup_connections
.insert(connection.id, *connection)
if FixedLookup::is_responsible(bus_receive) {
assert!(fixed_lookup_receives
.insert(bus_receive.bus_id, *bus_receive)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the key reason for replacing connection with bus_receives? Where's the key logic that matches bus sends with bus receives (via id)?

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