Skip to content

Commit

Permalink
Ignore constant terms in Dejavu
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Feb 10, 2024
1 parent c900f1b commit e72872f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/Dejavu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def apply(operators, methods, predicates, state, tasks, goal_pos, goal_not, debu
terms |= t.drop(1)
t.equal?(task)
}
terms.select! {|t| t.start_with?('?')}
if name == task[0] && decomposition[-1].size > 1 or decomposition[1].empty? or task.size == 1 or task.drop(1).sort! != terms.sort
name = "#{name}_#{decomposition[0]}_#{index}"
decomposition[3] << [visited = "visited_#{name}".freeze, *terms]
Expand Down

0 comments on commit e72872f

Please sign in to comment.