Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan committed Nov 27, 2024
1 parent e0e654b commit 8f40e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/mcsat/trail.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ void trail_clear_unassigned_cache(mcsat_trail_t* trail, mcsat_model_t* cache) {
}
}

#if 0
inline static
void trail_clear_unassigned_bool_cache(mcsat_trail_t* trail, mcsat_model_t* cache) {
for (variable_t var = 0; var < cache->size; ++var) {
Expand All @@ -398,6 +399,7 @@ void trail_clear_unassigned_bool_cache(mcsat_trail_t* trail, mcsat_model_t* cach
}
}
}
#endif

void trail_recache(mcsat_trail_t* trail, uint32_t round) {
// clear target or copy best into target at each recache iteration
Expand Down
2 changes: 1 addition & 1 deletion src/mcsat/trail.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ void trail_set_cached_value(mcsat_trail_t* trail, variable_t var, const mcsat_va
if (!trail_has_value(trail, var)) {
mcsat_model_set_value(&trail->model, var, value);
}
mcsat_model_set_value(&trail->target_cache, var, value);
if (!mcsat_model_has_value(&trail->target_cache, var)) trail->target_depth++;
mcsat_model_set_value(&trail->target_cache, var, value);
}

/** Add a new decision x -> value */
Expand Down

0 comments on commit 8f40e8f

Please sign in to comment.