Skip to content

Commit

Permalink
Refactor Patterns DOT edges
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Mar 18, 2024
1 parent 26b5f75 commit 89c0015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/Patterns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def match_patterns(swaps, dependencies, operators, predicates, debug)
op2_namesub = (name2 = op2[0]).tr(hyphen, underscore)
pos.each {|pre|
puts " #{name2} before #{name}, dependency (#{pre_join = pre.join(sep)})"
edges.push("\n #{op2_namesub} -> \"(#{pre_join})\"", "\n \"(#{pre_join})\" -> #{namesub}")
edges << "\n #{op2_namesub} -> \"(#{pre_join})\" -> #{namesub}"
}
neg.each {|pre|
puts " #{name2} before #{name}, dependency (not (#{pre_join = pre.join(sep)}))"
edges.push("\n #{op2_namesub} -> \"(not (#{pre_join}))\"", "\n \"(not (#{pre_join}))\" -> #{namesub}")
edges << "\n #{op2_namesub} -> \"(not (#{pre_join}))\" -> #{namesub}"
}
}
}
Expand Down

0 comments on commit 89c0015

Please sign in to comment.