Skip to content

Commit

Permalink
Don't replace duplicate results if they are atomic, simpler to just s…
Browse files Browse the repository at this point in the history
…how them
  • Loading branch information
infradig committed Oct 10, 2023
1 parent ecdafb7 commit dafed74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ static int check_duplicate_result(query *q, int nbr, cell *c, pl_idx c_ctx)
ptr = ptr->next;
}

add_result(nbr, c, c_ctx);
if (!is_atomic(c))
add_result(nbr, c, c_ctx);

return -1;
}

Expand Down

0 comments on commit dafed74

Please sign in to comment.