Give FailLow flag more descriptive name
authorJoona Kiiski <joona.kiiski@gmail.com>
Fri, 5 Feb 2010 13:20:38 +0000 (15:20 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 5 Feb 2010 14:21:21 +0000 (15:21 +0100)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 6ef15600d70604708b65847f8739c1281ec070a6..07cd67047d17975fb4912121576ef2fe3985ba97 100644 (file)
@@ -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