]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Assert enhancements in search
[stockfish] / src / thread.cpp
index cf35c28857305b68c7b17ff768836b51d27956c1..18e35fb062ca9e11919cd6bab60148d2c13a3e7a 100644 (file)
@@ -112,8 +112,8 @@ bool Thread::is_available_to(int master) const {
 
 void ThreadsManager::read_uci_options() {
 
-  maxThreadsPerSplitPoint = Options["Maximum Number of Threads per Split Point"].value<int>();
-  minimumSplitDepth       = Options["Minimum Split Depth"].value<int>() * ONE_PLY;
+  maxThreadsPerSplitPoint = Options["Max Threads per Split Point"].value<int>();
+  minimumSplitDepth       = Options["Min Split Depth"].value<int>() * ONE_PLY;
   useSleepingThreads      = Options["Use Sleeping Threads"].value<bool>();
 
   set_size(Options["Threads"].value<int>());
@@ -263,7 +263,7 @@ Value ThreadsManager::split(Position& pos, Stack* ss, Value alpha, Value beta,
                             Value bestValue, Depth depth, Move threatMove,
                             int moveCount, MovePicker* mp, int nodeType) {
   assert(pos.pos_is_ok());
-  assert(bestValue >= -VALUE_INFINITE);
+  assert(bestValue > -VALUE_INFINITE);
   assert(bestValue <= alpha);
   assert(alpha < beta);
   assert(beta <= VALUE_INFINITE);
@@ -443,7 +443,7 @@ void ThreadsManager::start_thinking(const Position& pos, const LimitsType& limit
   // Copy input arguments to initialize the search
   RootPosition.copy(pos, 0);
   Limits = limits;
-  RootMoves = searchMoves;
+  SearchMoves = searchMoves;
 
   // Reset signals before to start the new search
   memset((void*)&Signals, 0, sizeof(Signals));