diff --git a/Hypertension.rb b/Hypertension.rb index af43498..a32ec8a 100644 --- a/Hypertension.rb +++ b/Hypertension.rb @@ -171,7 +171,7 @@ def generate(precond_pos, precond_not, *free) match_objects.shift << match_objects.shift until match_objects.empty? } # Unification closed - terms.each {|i| i.first.replace('X') if i.instance_of?(Array) and i.first.empty?} + terms.each {|i| i.first << 0 if i.instance_of?(Array) and i.first.empty?} } # Remove pointer and duplicates objects.each {|i|