Skip to content

Commit

Permalink
Use NUL to mark unification in Hypertension generate
Browse files Browse the repository at this point in the history
NUL marks the spot!
  • Loading branch information
Maumagnaguagno committed Oct 12, 2023
1 parent f38d809 commit fe678e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hypertension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit fe678e5

Please sign in to comment.