summaryrefslogtreecommitdiff
path: root/src/searchsup.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-10-05 13:05:34 -0700
committerScott Gasch <[email protected]>2026-10-05 13:05:34 -0700
commitbb7cdcda4c8c30ad0ed71d0f60427daf05977b24 (patch)
tree99a5a3f9fa6edcced73d966df0af07274ff67962 /src/searchsup.c
parent5d9a5cf4036d07252e81d51e78e6dd36e65c9275 (diff)
New telemetry.
Diffstat (limited to 'src/searchsup.c')
-rw-r--r--src/searchsup.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/searchsup.c b/src/searchsup.c
index 2bbf1ef..9e11631 100644
--- a/src/searchsup.c
+++ b/src/searchsup.c
@@ -999,8 +999,11 @@ Parameters:
Return value:
FLAG : TRUE iff mv should be pruned outright (skipped, not merely
- reduced) -- see search.c's call site comment for why that's
- currently audit-only, not wired to actually skip the move.
+ reduced). Live, not audit-only: search.c's move loop actually
+ `continue`s past mv when this returns TRUE (the same final check
+ that consumes fThisMoveEFPPruned), after INCrementing
+ u64LMPPruned for the script-summary "late-move pruning (overt
+ skip, not reduction)" line under PERF_COUNTERS.
**/
{
@@ -2306,7 +2309,8 @@ TryNullmovePruning(SEARCHER_THREAD_CONTEXT *ctx,
SCORE iBeta,
ULONG uNullDepth,
INT *piOrigExtend,
- SCORE *piNullScore)
+ SCORE *piNullScore,
+ ULONG uNullRBucket)
{
static INT _bm_by_piece[7] = {
-1, -1, QUARTER_PLY, QUARTER_PLY, HALF_PLY, HALF_PLY, -1
@@ -2367,6 +2371,9 @@ TryNullmovePruning(SEARCHER_THREAD_CONTEXT *ctx,
// Nullmove succeeded and either no need to verify or verify
// succeeded too.
INC(ctx->sCounters.tree.u64NullMoveSuccess);
+#ifdef PERF_COUNTERS
+ INC(ctx->sCounters.tree.u64NullMoveSuccessByR[uNullRBucket]);
+#endif
if (*piNullScore > +NMATE) *piNullScore = +NMATE;
return TRUE;
}