mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +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
|
@ -98,7 +98,10 @@ extern "C" {
|
|||
LOG_Z3_set_param_value(c, param_id, param_value);
|
||||
try {
|
||||
ast_context_params * p = reinterpret_cast<ast_context_params*>(c);
|
||||
p->set(param_id, param_value);
|
||||
if (p->is_shell_only_parameter(param_id))
|
||||
warning_msg("parameter %s can only be set for the shell, not binary API", param_id);
|
||||
else
|
||||
p->set(param_id, param_value);
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
// The error handler is only available for contexts
|
||||
|
@ -111,7 +114,10 @@ extern "C" {
|
|||
Z3_TRY;
|
||||
LOG_Z3_update_param_value(c, param_id, param_value);
|
||||
RESET_ERROR_CODE();
|
||||
mk_c(c)->params().set(param_id, param_value);
|
||||
if (mk_c(c)->params().is_shell_only_parameter(param_id))
|
||||
warning_msg("parameter %s can only be set for the shell, not binary API", param_id);
|
||||
else
|
||||
mk_c(c)->params().set(param_id, param_value);
|
||||
Z3_CATCH;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue