3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 14:55:45 +00:00

use more descriptive functions than casting comparisons

This commit is contained in:
Nikolaj Bjorner 2025-03-19 21:03:36 -10:00 committed by Lev Nachmanson
parent 7fb40e86eb
commit 29c5c20267
2 changed files with 9 additions and 8 deletions

View file

@ -74,11 +74,14 @@ enum class lp_status {
OPTIMAL
};
inline bool is_sat(lp_status st) {
return st == lp_status::FEASIBLE || st == lp_status::OPTIMAL;
}
// when the ratio of the vector length to domain size to is greater than the return value we switch to solve_By_for_T_indexed_only
template <typename X>
unsigned ratio_of_index_size_to_all_size() {
return 10;
return 10;
}
const char* lp_status_to_string(lp_status status);