Skip to content

Commit

Permalink
avoid caching UNSAT results
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDubray committed Oct 16, 2024
1 parent 212874c commit eae4120
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ impl<B: BranchingDecision, const S: bool, const C: bool> Solver<B, S, C> {
backtrack_level,
cache_index: cache_entry.cache_key_index,
};
self.cache.insert(cache_key, cache_entry);
if cache_entry.bounds.0 != 0.0 {
self.cache.insert(cache_key, cache_entry);
}
result
}
}
Expand Down

0 comments on commit eae4120

Please sign in to comment.