Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ impl WorkingNogood {
predicate_id_generator: &mut PredicateIdGenerator,
mode: AnalysisMode,
) {
let predicate_id = predicate_id_generator.get_id(predicate);

if self.is_redundant(
predicate,
context,
predicate_id_generator.get_id(predicate),
predicate_id,
predicate_id_generator,
mode,
) {
Expand All @@ -105,8 +107,6 @@ impl WorkingNogood {

// We first retrieve the value that the predicate will get in the heap
let heap_value = get_heap_value(predicate, context);
// And its corresponding predicate id
let predicate_id = predicate_id_generator.get_id(predicate);

// Next, we restore the key in the heap
self.to_process_heap.restore_key(predicate_id);
Expand Down
Loading