mirror of
https://github.com/Z3Prover/z3
synced 2026-03-07 05:44:51 +00:00
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
/*++
|
|
Copyright (c) 2006 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
smt_params.cpp
|
|
|
|
Abstract:
|
|
|
|
<abstract>
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2008-02-20.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#include"smt_params.h"
|
|
#include"smt_params_helper.hpp"
|
|
|
|
void smt_params::updt_local_params(params_ref const & _p) {
|
|
smt_params_helper p(_p);
|
|
m_auto_config = p.auto_config();
|
|
m_random_seed = p.random_seed();
|
|
m_relevancy_lvl = p.relevancy();
|
|
m_ematching = p.ematching();
|
|
m_phase_selection = static_cast<phase_selection>(p.phase_selection());
|
|
m_restart_strategy = static_cast<restart_strategy>(p.restart_strategy());
|
|
m_restart_factor = p.restart_factor();
|
|
m_case_split_strategy = static_cast<case_split_strategy>(p.case_split());
|
|
m_delay_units = p.delay_units();
|
|
m_delay_units_threshold = p.delay_units_threshold();
|
|
m_preprocess = _p.get_bool("preprocess", true); // hidden parameter
|
|
m_soft_timeout = p.soft_timeout();
|
|
if (_p.get_bool("arith.greatest_error_pivot", false))
|
|
m_arith_pivot_strategy = ARITH_PIVOT_GREATEST_ERROR;
|
|
else if (_p.get_bool("arith.least_error_pivot", false))
|
|
m_arith_pivot_strategy = ARITH_PIVOT_LEAST_ERROR;
|
|
}
|
|
|
|
void smt_params::updt_params(params_ref const & p) {
|
|
preprocessor_params::updt_params(p);
|
|
qi_params::updt_params(p);
|
|
theory_arith_params::updt_params(p);
|
|
theory_bv_params::updt_params(p);
|
|
updt_local_params(p);
|
|
}
|
|
|
|
void smt_params::updt_params(context_params const & p) {
|
|
m_auto_config = p.m_auto_config;
|
|
m_model = p.m_model;
|
|
m_model_validate = p.m_model_validate;
|
|
}
|
|
|