diff --git a/extensions/Patterns.rb b/extensions/Patterns.rb index 0c8fa93..9a55ca2 100644 --- a/extensions/Patterns.rb +++ b/extensions/Patterns.rb @@ -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}" } } }