3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

set uninitialized fields. Maybe related to #1468

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-02-04 12:56:21 -08:00
parent 54ba25175c
commit 20d6543538
5 changed files with 26 additions and 21 deletions

View file

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

View file

@ -2460,10 +2460,7 @@ namespace sat {
// try to use cached implication if available
literal_vector * implied_lits = m_probing.cached_implied_lits(~l);
if (implied_lits) {
literal_vector::iterator it = implied_lits->begin();
literal_vector::iterator end = implied_lits->end();
for (; it != end; ++it) {
literal l2 = *it;
for (literal l2 : *implied_lits) {
// Here, we must check l0 != ~l2.
// l \/ l2 is an implied binary clause.
// However, it may have been deduced using a lemma that has been deleted.