Commit 542f84d2 by Alan Mishchenko

Small changes to compile satoko on Windows.

parent 6ae1f35f
......@@ -1994,6 +1994,90 @@ SOURCE=.\src\sat\xsat\xsatUtils.h
SOURCE=.\src\sat\xsat\xsatWatchList.h
# End Source File
# End Group
# Begin Group "satoko"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\src\sat\satoko\act_clause.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\act_var.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\b_queue.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\cdb.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\clause.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\cnf_reader.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\heap.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\mem.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\misc.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\satoko.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver_api.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\sort.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\types.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_char.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_dble.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_int.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_uint.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\watch_list.h
# End Source File
# End Group
# End Group
# Begin Group "opt"
......
......@@ -26,9 +26,9 @@ static inline void clause_act_rescale(solver_t *s)
vec_uint_foreach(s->learnts, cref, i) {
clause = clause_read(s, cref);
clause->data[clause->size].act *= 1e-20;
clause->data[clause->size].act *= (float)1e-20;
}
s->clause_act_inc *= 1e-20;
s->clause_act_inc *= (float)1e-20;
}
/** Increment the activity value of one clause ('clause')
......
......@@ -97,7 +97,7 @@ static void read_clause(char **token, vec_uint_t *lits)
break;
sign = (var > 0);
var = abs(var) - 1;
vec_uint_push_back(lits, var2lit((unsigned) var, !sign));
vec_uint_push_back(lits, var2lit((unsigned) var, (char)!sign));
}
}
......
......@@ -330,7 +330,7 @@ static inline int solver_rst(solver_t *s)
static inline int solver_block_rst(solver_t *s)
{
return s->stats.n_conflicts > s->opts.fst_block_rst &&
return s->stats.n_conflicts > (int)s->opts.fst_block_rst &&
b_queue_is_valid(s->bq_lbd) &&
((long)vec_uint_size(s->trail) > (s->opts.b_rst * (long)b_queue_avg(s->bq_trail)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment