3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-13 03:00:19 +00:00

configuration update to SAT solver on creation time. Adding random_seed to sat parameters to enable command-line and module mode to work at the level of sat solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-26 16:42:11 -07:00
parent 9412890c63
commit e57e5328ce
4 changed files with 8 additions and 3 deletions

View file

@ -46,7 +46,7 @@ namespace sat {
m_qhead(0),
m_scope_lvl(0),
m_params(p) {
m_config.updt_params(p);
updt_params(p);
}
solver::~solver() {
@ -1972,7 +1972,7 @@ namespace sat {
m_asymm_branch.updt_params(p);
m_probing.updt_params(p);
m_scc.updt_params(p);
m_rand.set_seed(p.get_uint("random_seed", 0));
m_rand.set_seed(m_config.m_random_seed);
}
void solver::collect_param_descrs(param_descrs & d) {