From 321f6d1d1979d55862ad907fb3fa761b9c35872c Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Fri, 5 Feb 2010 15:20:38 +0200 Subject: [PATCH] Give FailLow flag more descriptive name Signed-off-by: Marco Costalba --- src/search.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 6ef15600..07cd6704 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -198,7 +198,7 @@ namespace { int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime, ExactMaxTime; bool UseTimeManagement, InfiniteSearch, PonderSearch, StopOnPonderhit; bool AbortSearch, Quit; - bool FailLow; + bool AspirationFailLow; // Show current line? bool ShowCurrentLine; @@ -340,7 +340,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move, // Initialize global search variables Idle = StopOnPonderhit = AbortSearch = Quit = false; - FailLow = false; + AspirationFailLow = false; NodesSincePoll = 0; SearchStartTime = get_system_time(); ExactMaxTime = maxTime; @@ -1078,9 +1078,9 @@ namespace { assert(alpha >= oldAlpha); - FailLow = (alpha == oldAlpha); + AspirationFailLow = (alpha == oldAlpha); - if (FailLow && StopOnPonderhit) + if (AspirationFailLow && StopOnPonderhit) StopOnPonderhit = false; } @@ -2683,7 +2683,7 @@ namespace { return; bool stillAtFirstMove = RootMoveNumber == 1 - && !FailLow + && !AspirationFailLow && t > MaxSearchTime + ExtraSearchTime; bool noMoreTime = t > AbsoluteMaxSearchTime @@ -2706,7 +2706,7 @@ namespace { PonderSearch = false; bool stillAtFirstMove = RootMoveNumber == 1 - && !FailLow + && !AspirationFailLow && t > MaxSearchTime + ExtraSearchTime; bool noMoreTime = t > AbsoluteMaxSearchTime -- 2.39.2