template<bool Trace>
Value do_evaluate(const Position& pos, Value& margin) {
+ assert(!pos.in_check());
+
EvalInfo ei;
Value margins[2];
Score score, mobilityWhite, mobilityBlack;
- assert(pos.thread() >= 0 && pos.thread() < MAX_THREADS);
- assert(!pos.in_check());
-
// Initialize score by reading the incrementally updated scores included
// in the position object (material + piece square tables).
score = pos.value();