3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

fix build errors

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-05-01 09:15:53 -07:00
parent a91d7a7189
commit bfac44f7ed
3 changed files with 7 additions and 9 deletions

View file

@ -1125,8 +1125,6 @@ namespace sat {
unsigned offset = 1;
DEBUG_CODE(active2pb(m_A););
unsigned init_marks = m_num_marks;
do {
if (m_overflow || offset > (1 << 12)) {
@ -1361,10 +1359,9 @@ namespace sat {
int64_t coeff = get_coeff(v);
lbool val = value(v);
bool is_true = val == l_true;
bool append = coeff != 0 && val != l_undef && (coeff < 0 == is_true);
bool append = coeff != 0 && val != l_undef && ((coeff < 0) == is_true);
if (append) {
literal lit(v, !is_true);
unsigned acoeff = get_abs_coeff(v);
if (lvl(lit) == m_conflict_lvl) {
if (m_lemma[0] == null_literal) {
asserting_coeff = std::abs(coeff);
@ -1699,7 +1696,6 @@ namespace sat {
double ba_solver::get_reward(literal l, ext_justification_idx idx, literal_occs_fun& occs) const {
constraint const& c = index2constraint(idx);
unsigned sz = c.size();
switch (c.tag()) {
case card_t: return get_reward(c.to_card(), occs);
case pb_t: return get_reward(c.to_pb(), occs);
@ -2264,7 +2260,7 @@ namespace sat {
bool ba_solver::validate_watch(pb const& p, literal alit) const {
for (unsigned i = 0; i < p.size(); ++i) {
literal l = p[i].second;
if (l != alit && lvl(l) != 0 && is_watched(l, p) != i < p.num_watch()) {
if (l != alit && lvl(l) != 0 && is_watched(l, p) != (i < p.num_watch())) {
IF_VERBOSE(0, display(verbose_stream(), p, true);
verbose_stream() << "literal " << l << " at position " << i << " " << is_watched(l, p) << "\n";);
UNREACHABLE();

View file

@ -243,11 +243,13 @@ namespace sat {
struct ba_sort {
ba_solver& s;
typedef typename sat::literal literal;
typedef typename sat::literal_vector literal_vector;
literal m_true;
literal_vector m_lits;
typedef sat::literal literal;
typedef sat::literal_vector literal_vector;
ba_sort(ba_solver& s): s(s), m_true(null_literal) {}
literal mk_false();
literal mk_true();

View file

@ -90,7 +90,7 @@ namespace sat {
double m_cube_psat_trigger;
config() {
memset(this, sizeof(*this), 0);
memset(this, 0, sizeof(*this));
m_dl_success = 0.8;
m_alpha = 3.5;
m_max_score = 20.0;