Also a speedup since we don't need to recalculate SEE
for extensions...as it already determined to be positive.
Results for 12 tests for each version:
Base Test Diff
Mean
2132395 2191002 -58607
StDev 128058 85917 134239
p-value: 0.669
speedup: 0.027
Non functional change.
// Step 13. Pruning at shallow depth
if ( !rootNode
- && bestValue > VALUE_MATED_IN_MAX_PLY)
+ && bestValue > VALUE_MATED_IN_MAX_PLY)
{
if ( !captureOrPromotion
&& !givesCheck
// Futility pruning: parent node
if ( lmrDepth < 7
+ && !inCheck
&& ss->staticEval + 256 + 200 * lmrDepth <= alpha)
continue;
continue;
}
else if ( depth < 7 * ONE_PLY
+ && !extension
&& !pos.see_ge(move, Value(-35 * depth / ONE_PLY * depth / ONE_PLY)))
continue;
}