Skip to content

Commit

Permalink
rm bool-var-dump
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan committed Dec 23, 2023
1 parent 3b2e3e3 commit 1904fa5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/mcsat/bool/bool_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ typedef struct {
/** Number of Reduce Clause DB Calls */
uint32_t num_clause_db_reduce;

/** bump factor for bool vars -- geq 1. Higher number means more weightage **/
uint32_t bool_var_bump_factor;

} heuristic_params;

struct {
Expand Down Expand Up @@ -131,9 +128,6 @@ void bool_plugin_heuristics_init(bool_plugin_t* bp) {
bp->heuristic_params.lemma_reduce_interval = 300;
bp->heuristic_params.lemma_reduce_fraction = 0.75;
bp->heuristic_params.num_clause_db_reduce = 0;

// Bool var scoring
bp->heuristic_params.bool_var_bump_factor = 5;
}

static
Expand Down Expand Up @@ -741,9 +735,8 @@ term_t bool_plugin_explain_propagation(plugin_t* plugin, variable_t var, ivector
}
ivector_push(reasons, opposite_term(t_i));

// Bump the reason variable -- give more weightage to boolean reasons
bp->ctx->bump_variable_n(bp->ctx, x_i,
bp->heuristic_params.bool_var_bump_factor);
// Bump the reason variable
bp->ctx->bump_variable(bp->ctx, x_i);
}

return bool2term(var_value);
Expand Down

0 comments on commit 1904fa5

Please sign in to comment.