mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
parent
cb6896087d
commit
1ee7871bbf
|
@ -1012,7 +1012,7 @@ namespace opt {
|
||||||
void context::model_updated(model* md) {
|
void context::model_updated(model* md) {
|
||||||
opt_params optp(m_params);
|
opt_params optp(m_params);
|
||||||
symbol prefix = optp.solution_prefix();
|
symbol prefix = optp.solution_prefix();
|
||||||
if (prefix == symbol::null) return;
|
if (prefix == symbol::null || prefix == symbol("")) return;
|
||||||
model_ref mdl = md->copy();
|
model_ref mdl = md->copy();
|
||||||
fix_model(mdl);
|
fix_model(mdl);
|
||||||
std::ostringstream buffer;
|
std::ostringstream buffer;
|
||||||
|
|
|
@ -5,7 +5,7 @@ def_module_params('opt',
|
||||||
('maxsat_engine', SYMBOL, 'maxres', "select engine for maxsat: 'core_maxsat', 'wmax', 'maxres', 'pd-maxres'"),
|
('maxsat_engine', SYMBOL, 'maxres', "select engine for maxsat: 'core_maxsat', 'wmax', 'maxres', 'pd-maxres'"),
|
||||||
('priority', SYMBOL, 'lex', "select how to priortize objectives: 'lex' (lexicographic), 'pareto', or 'box'"),
|
('priority', SYMBOL, 'lex', "select how to priortize objectives: 'lex' (lexicographic), 'pareto', or 'box'"),
|
||||||
('dump_benchmarks', BOOL, False, 'dump benchmarks for profiling'),
|
('dump_benchmarks', BOOL, False, 'dump benchmarks for profiling'),
|
||||||
('solution_prefix', SYMBOL, None, "path prefix to dump intermediary, but non-optimal, solutions"),
|
('solution_prefix', SYMBOL, '', "path prefix to dump intermediary, but non-optimal, solutions"),
|
||||||
('timeout', UINT, UINT_MAX, 'timeout (in milliseconds) (UINT_MAX and 0 mean no timeout)'),
|
('timeout', UINT, UINT_MAX, 'timeout (in milliseconds) (UINT_MAX and 0 mean no timeout)'),
|
||||||
('rlimit', UINT, 0, 'resource limit (0 means no limit)'),
|
('rlimit', UINT, 0, 'resource limit (0 means no limit)'),
|
||||||
('enable_sls', BOOL, False, 'enable SLS tuning during weighted maxsast'),
|
('enable_sls', BOOL, False, 'enable SLS tuning during weighted maxsast'),
|
||||||
|
|
Loading…
Reference in a new issue