mirror of
https://github.com/Z3Prover/z3
synced 2025-11-02 20:47:52 +00:00
add warning messages for #7100
This commit is contained in:
parent
50deece29e
commit
738c5b6d0d
3 changed files with 30 additions and 6 deletions
|
|
@ -51,15 +51,18 @@ void context_params::set_uint(unsigned & opt, char const * param, char const * v
|
|||
}
|
||||
}
|
||||
|
||||
void context_params::set(char const * param, char const * value) {
|
||||
std::string p = param;
|
||||
unsigned n = static_cast<unsigned>(p.size());
|
||||
for (unsigned i = 0; i < n; i++) {
|
||||
static void lower_case(std::string& p) {
|
||||
for (size_t i = 0; i < p.size(); i++) {
|
||||
if (p[i] >= 'A' && p[i] <= 'Z')
|
||||
p[i] = p[i] - 'A' + 'a';
|
||||
else if (p[i] == '-')
|
||||
p[i] = '_';
|
||||
}
|
||||
}
|
||||
|
||||
void context_params::set(char const * param, char const * value) {
|
||||
std::string p = param;
|
||||
lower_case(p);
|
||||
if (p == "timeout") {
|
||||
set_uint(m_timeout, param, value);
|
||||
}
|
||||
|
|
@ -195,5 +198,15 @@ void context_params::get_solver_params(params_ref & p, bool & proofs_enabled, bo
|
|||
p.set_bool("auto_config", false);
|
||||
}
|
||||
|
||||
bool context_params::is_shell_only_parameter(char const* _p) const {
|
||||
std::string p(_p);
|
||||
lower_case(p);
|
||||
if (p == "dump_models" || p == "well_sorted_check" ||
|
||||
p == "model_validate" || p == "smtlib2_compliant" ||
|
||||
p == "stats")
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue