mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
rename to log_start for clarity
This commit is contained in:
parent
6bbd68cdf1
commit
e7e025a2fc
3 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,8 @@ def_module_params('polysat',
|
|||
params=(
|
||||
('max_conflicts', UINT, UINT_MAX, "maximum number of conflicts before giving up"),
|
||||
('max_decisions', UINT, UINT_MAX, "maximum number of decisions before giving up"),
|
||||
('log', UINT, UINT_MAX, "polysat logging filter (enable logging in iteration N)"),
|
||||
# ('log', UINT, UINT_MAX, "polysat logging filter (TODO)"),
|
||||
('log_start', UINT, UINT_MAX, "Enable logging on solver iteration N"),
|
||||
('log_conflicts', BOOL, False, "log conflicts"),
|
||||
('slicing.congruence', BOOL, False, "bitvector slicing: add virtual congruence terms"),
|
||||
)
|
||||
|
|
|
@ -80,12 +80,12 @@ namespace polysat {
|
|||
m_params.append(p);
|
||||
m_config.m_max_conflicts = pp.max_conflicts();
|
||||
m_config.m_max_decisions = pp.max_decisions();
|
||||
m_config.m_log_iteration = pp.log();
|
||||
m_config.m_log_start = pp.log_start();
|
||||
m_config.m_log_conflicts = pp.log_conflicts();
|
||||
m_config.m_slicing_congruence = pp.slicing_congruence();
|
||||
|
||||
// TODO: log filter to enable/disable based on submodules
|
||||
if (m_config.m_log_iteration == 0)
|
||||
if (m_config.m_log_start == 0)
|
||||
set_log_enabled(true);
|
||||
else
|
||||
set_log_enabled(false);
|
||||
|
@ -106,7 +106,7 @@ namespace polysat {
|
|||
LOG("Starting");
|
||||
while (should_search()) {
|
||||
m_stats.m_num_iterations++;
|
||||
if (m_stats.m_num_iterations == config().m_log_iteration)
|
||||
if (m_stats.m_num_iterations == config().m_log_start)
|
||||
set_log_enabled(true);
|
||||
LOG_H1("Next solving loop iteration (#" << m_stats.m_num_iterations << ")");
|
||||
LOG("Free variables: " << m_free_pvars);
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace polysat {
|
|||
struct config_t {
|
||||
uint64_t m_max_conflicts = std::numeric_limits<uint64_t>::max();
|
||||
uint64_t m_max_decisions = std::numeric_limits<uint64_t>::max();
|
||||
unsigned m_log_iteration = UINT_MAX;
|
||||
unsigned m_log_start = UINT_MAX;
|
||||
bool m_log_conflicts = false;
|
||||
bool m_slicing_congruence = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue