Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Propagate tags for edges, not all nodes that have an edge
Browse files Browse the repository at this point in the history
Change-Id: I42288adf9332ba17f7a43bf94541fa88eebdfac9
  • Loading branch information
Cypher1 committed Mar 4, 2022
1 parent bdb7725 commit 7748ef9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ibis/src/recipes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ ibis! {
KnownType(apply!(y_generic, y_arg));

HasTag(s, n, n, tag) <- Solution(s), Claim(n, tag);
HasTag(s, source, down, tag) <- // Propagate tags 'downstream'
Node(_down_particle, down, _, _),
HasTag(s, source, *down, tag) <- // Propagate tags 'downstream'
HasTag(s, source, curr, tag),
!TrustedToRemoveTag(down, tag),
(s.has_edge(curr, down));
for (up, down) in &s.solution().edges,
(*up == curr),
!TrustedToRemoveTag(*down, tag);

HasTag(s, source, down, tag) <- // Propagate tags 'across stream' (i.e. inside a particle)
HasTag(s, source, curr, tag),
Expand Down

0 comments on commit 7748ef9

Please sign in to comment.