mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 16:25:48 +00:00
exposed sat params
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
773f82a44c
commit
0934cb06d8
8 changed files with 111 additions and 87 deletions
|
@ -17,6 +17,7 @@ Revision History:
|
|||
|
||||
--*/
|
||||
#include"sat_asymm_branch.h"
|
||||
#include"sat_asymm_branch_params.hpp"
|
||||
#include"sat_solver.h"
|
||||
#include"stopwatch.h"
|
||||
#include"trace.h"
|
||||
|
@ -193,18 +194,17 @@ namespace sat {
|
|||
}
|
||||
}
|
||||
|
||||
void asymm_branch::updt_params(params_ref const & p) {
|
||||
m_asymm_branch = p.get_bool("asymm_branch", true);
|
||||
m_asymm_branch_rounds = p.get_uint("asymm_branch_rounds", 32);
|
||||
m_asymm_branch_limit = p.get_uint("asymm_branch_limit", 100000000);
|
||||
void asymm_branch::updt_params(params_ref const & _p) {
|
||||
sat_asymm_branch_params p(_p);
|
||||
m_asymm_branch = p.asymm_branch();
|
||||
m_asymm_branch_rounds = p.asymm_branch_rounds();
|
||||
m_asymm_branch_limit = p.asymm_branch_limit();
|
||||
if (m_asymm_branch_limit > INT_MAX)
|
||||
m_asymm_branch_limit = INT_MAX;
|
||||
}
|
||||
|
||||
void asymm_branch::collect_param_descrs(param_descrs & d) {
|
||||
d.insert("asymm_branch", CPK_BOOL, "(default: true) asymmetric branching.");
|
||||
d.insert("asymm_branch_rounds", CPK_UINT, "(default: 32) maximum number of rounds of asymmetric branching.");
|
||||
d.insert("asymm_branch_limit", CPK_UINT, "approx. maximum number of literals visited during asymmetric branching.");
|
||||
sat_asymm_branch_params::collect_param_descrs(d);
|
||||
}
|
||||
|
||||
void asymm_branch::collect_statistics(statistics & st) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue