3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-08 17:01:55 +00:00

initialize glue in constructor to ensure it gets set

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-11-15 15:57:07 -08:00
parent f7e14b3283
commit d8a2e9d008
4 changed files with 12 additions and 16 deletions

View file

@ -33,7 +33,9 @@ namespace sat {
m_used(false),
m_frozen(false),
m_reinit_stack(false),
m_inact_rounds(0) {
m_inact_rounds(0),
m_glue(255),
m_psm(255) {
memcpy(m_lits, lits, sizeof(literal) * sz);
mark_strengthened();
SASSERT(check_approx());

View file

@ -84,9 +84,11 @@ namespace sat {
double m_cube_fraction;
config() {
m_max_hlevel = 50;
memset(this, sizeof(*this), 0);
m_dl_success = 0.8;
m_alpha = 3.5;
m_max_score = 20.0;
m_max_hlevel = 50;
m_min_cutoff = 30;
m_preselect = false;
m_level_cand = 600;

View file

@ -1762,11 +1762,8 @@ namespace sat {
\brief Compute the psm of all learned clauses.
*/
void solver::save_psm() {
clause_vector::iterator it = m_learned.begin();
clause_vector::iterator end = m_learned.end();
for (; it != end; ++it) {
clause & c = *(*it);
c.set_psm(psm(c));
for (clause* cp : m_learned) {
cp->set_psm(psm(*cp));
}
}