Skip to content

Commit

Permalink
avoid dupplication in top_decision_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hader authored and Thomas Hader committed Mar 11, 2024
1 parent 6734860 commit bd2daab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mcsat/solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,11 @@ void mcsat_plugin_context_gc(plugin_context_t* self) {

static inline
void mcsat_add_top_decision(mcsat_solver_t* mcsat, variable_t x) {
for (int i = 0; i < mcsat->top_decision_vars.size; ++i) {
if (mcsat->top_decision_vars.data[i] == x) {
return;
}
}
ivector_push(&mcsat->top_decision_vars, x);
}

Expand Down

0 comments on commit bd2daab

Please sign in to comment.