Skip to content

Commit

Permalink
remove duplicated code about hints in mcsat
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan authored Sep 11, 2024
1 parent 1af326b commit ca0a844
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/mcsat/solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2451,19 +2451,6 @@ bool mcsat_decide(mcsat_solver_t* mcsat) {
var = variable_null;
}

// then try the variables a plugin requested
if (var == variable_null) {
while (!int_queue_is_empty(&mcsat->hinted_decision_vars)) {
var = int_queue_pop(&mcsat->hinted_decision_vars);
assert(var != variable_null);
if (!trail_has_value(mcsat->trail, var)) {
force_decision = true;
break;
}
var = variable_null;
}
}

// If there is a fixed order that was passed in, try that
if (var == variable_null) {
const ivector_t* order = &mcsat->ctx->mcsat_var_order;
Expand All @@ -2489,12 +2476,13 @@ bool mcsat_decide(mcsat_solver_t* mcsat) {
}
}

// try the variables a plugin requested
// then try the variables a plugin requested
if (var == variable_null) {
while (!int_queue_is_empty(&mcsat->hinted_decision_vars)) {
var = int_queue_pop(&mcsat->hinted_decision_vars);
assert(var != variable_null);
if (!trail_has_value(mcsat->trail, var)) {
force_decision = true;
break;
}
var = variable_null;
Expand Down

0 comments on commit ca0a844

Please sign in to comment.