3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 14:55:45 +00:00

split out restart

This commit is contained in:
Nikolaj Bjorner 2021-12-12 17:27:30 -08:00
parent 30a2c32c3b
commit 33d433d742
6 changed files with 85 additions and 27 deletions

View 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()();
};
}