mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 14:55:45 +00:00
split out restart
This commit is contained in:
parent
30a2c32c3b
commit
33d433d742
6 changed files with 85 additions and 27 deletions
35
src/math/polysat/restart.h
Normal file
35
src/math/polysat/restart.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*++
|
||||
Copyright (c) 2021 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
Restart
|
||||
|
||||
Author:
|
||||
|
||||
Jakob Rath, Nikolaj Bjorner (nbjorner) 2021-12-12
|
||||
|
||||
--*/
|
||||
#pragma once
|
||||
#include "math/polysat/constraint.h"
|
||||
|
||||
namespace polysat {
|
||||
|
||||
class solver;
|
||||
|
||||
class restart {
|
||||
solver& s;
|
||||
unsigned m_conflicts_at_restart = 0;
|
||||
unsigned m_restart_threshold = 100;
|
||||
unsigned m_restart_init = 100;
|
||||
unsigned m_luby_idx = 0;
|
||||
|
||||
public:
|
||||
restart(solver& s);
|
||||
|
||||
bool should_apply() const;
|
||||
|
||||
void operator()();
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue