1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00
BadFish/src
Marco Costalba e8baf2b772 Ensure ttValue != VALUE_NONE in singular extension search
The assert:

  assert(ttValue != VALUE_NONE);

Could fire for multiple reasons (although is very rare),
for instance after an IID we can have ttMove != MOVE_NONE
while ttValue is still set at VALUE_NONE.

But not only this, actually SMP is a source of corrupted
ttValue and anyhow we can detect the condition:

 ttMove != MOVE_NONE && ttValue == VALUE_NONE

even north of IID.

Reported by Ronald de Man.

It is so rare that bench didn't change.

bench: 7710548
2014-06-21 13:07:29 +02:00
..
benchmark.cpp Add perft 'divide' command 2014-05-24 09:56:32 +02:00
bitbase.cpp Fix a warning with MSVC in 'analyze' mode 2014-06-14 12:46:58 +02:00
bitboard.cpp Switch to hardware PEXT 2014-04-12 08:55:30 +02:00
bitboard.h Revert "Generalize shift_bb() to handle double pushes" 2014-04-21 20:56:12 +02:00
bitcount.h Update copyright year 2014-01-02 01:49:18 +01:00
endgame.cpp Revert back KBPsK to latest Gary's version 2014-05-04 09:34:22 +02:00
endgame.h Simplify pawnless endgame evaluation 2014-01-18 17:22:54 +01:00
evaluate.cpp Simplify unstoppable pawns 2014-06-16 12:39:50 +02:00
evaluate.h Small renaming in Tracing 2014-06-09 05:30:18 +09:00
main.cpp Move args parsing to UCI::loop 2014-04-12 13:51:52 +02:00
Makefile Remove -ansi flag for Clang 2014-06-15 10:31:57 +02:00
material.cpp Move game_phase() to Position 2014-06-20 23:44:46 +02:00
material.h Move game_phase() to Position 2014-06-20 23:44:46 +02:00
misc.cpp Restore development version 2014-05-31 23:34:36 +02:00
misc.h Additional renaming from DON 2014-02-14 09:42:50 +01:00
movegen.cpp Minor stuff scattered around 2014-04-28 17:07:43 +02:00
movegen.h Update copyright year 2014-01-02 01:49:18 +01:00
movepick.cpp Fix issues detected by Coverity Scan 2014-04-26 09:33:50 +02:00
movepick.h Sync some common names 2014-04-06 11:26:12 +02:00
notation.cpp Remove some useless casts 2014-04-27 11:44:16 +02:00
notation.h Some more work in pretty_pv 2014-04-06 10:15:11 +02:00
pawns.cpp Factor out pawn attacks in 'lever' 2014-06-14 12:20:54 +02:00
pawns.h More readable trapped rook condition 2014-04-13 14:29:42 +02:00
platform.h Update copyright year 2014-01-02 01:49:18 +01:00
position.cpp Better value clipping in game_phase() 2014-06-21 00:05:14 +02:00
position.h Move game_phase() to Position 2014-06-20 23:44:46 +02:00
psqtab.h Remove RookOn7th and merge values into psqt 2014-04-24 08:53:46 +02:00
rkiss.h Move magic random to RKISS 2014-02-12 14:47:36 +01:00
search.cpp Ensure ttValue != VALUE_NONE in singular extension search 2014-06-21 13:07:29 +02:00
search.h Avoid to use nullChild 2014-06-06 11:12:05 +02:00
thread.cpp Add some const qualifier 2014-06-03 11:43:52 +02:00
thread.h Retire "Idle Threads Sleep" UCI option 2014-05-11 10:29:56 +02:00
timeman.cpp Don't need floor() in timeman.cpp 2014-04-27 19:10:00 +02:00
timeman.h Fix Intel compiler warnings 2014-04-27 12:02:36 +02:00
tt.cpp Fix a warning with MSVC 2010 2014-03-30 14:25:57 +02:00
tt.h Tidy up tt.h 2014-05-25 00:02:09 +02:00
types.h Revert "Score extractors" 2014-06-05 23:55:18 +02:00
uci.cpp Triviality in UCI::loop 2014-06-14 12:26:08 +02:00
ucioption.cpp Retire Polyglot Book management 2014-06-01 15:29:34 +02:00
ucioption.h Move args parsing to UCI::loop 2014-04-12 13:51:52 +02:00