Branch Coverage

blib/lib/Chess/Plisco/Engine/Tree.pm
Criterion Covered Total %
branch 83 106 78.3


line true false branch
50 2 305 if ($position->[13] >= @$signatures)
78 5910 0 if ($elapsed > 500)
83 0 5910 if ($eta < 4 and not $self->{'max_depth'} and not $self->{'max_nodes'})
88 5910 0 $elapsed ? :
91 5910 0 if ($self->{'max_depth'}) { }
0 0 elsif ($self->{'max_nodes'}) { }
99 0 0 $nodes_to_tc < $max_nodes_to_tc ? :
129 654 1586 if ($score >= 14488) { }
4 1582 elsif ($score <= -14488) { }
138 2240 0 $elapsed ? :
139 658 1582 $mate_in ? :
144 0 2240 if ($self->{'__debug'})
145 0 0 if $self->{'__debug'}
154 3271 702869 if ($self->{'nodes'} >= $self->{'nodes_to_tc'})
170 0 706140 if ($position->[9] >= 100)
184 705728 412 if ($ply > 1)
191 181 18786 if ($signatures->[$n] == $signature)
193 160 21 if ($repetitions >= 2 or $n >= $history_length)
217 96749 609231 if (defined $tt_value)
219 0 96749 if ($tt_move and $ply == 1)
232 455921 153310 if ($depth <= 0)
245 4696 148614 if @$pline >= $ply
248 586 4735144 if (($move & 32767) == ($pv_move & 32767)) { }
9783 4725361 elsif (($move & 32767) == ($tt_move & 32767)) { }
276467 4448894 elsif ($depth > 1) { }
257 243 4448651 if $found >= 2
271 1558725 576886 unless my $state = $position->doMove($move)
275 2043 574843 if $print_current_move
282 31049 545837 if ($pv_found) { }
288 2885 28164 if ($val > $alpha and $val < $beta)
310 110403 466483 if ($val >= $beta)
321 5293 461190 if ($val > $alpha)
331 1933 3360 if ($is_pv)
338 16308 26599 unless ($legal)
340 0 16308 if (not $position->inCheck) { }
370 2639 899780 if ($self->{'nodes'} >= $self->{'nodes_to_tc'})
374 3043 899376 $ply > $self->{'seldepth'} ? :
390 125957 776462 if ($position->[17])
412 34187 742275 if (defined $tt_value)
425 552969 189306 if ($val >= $beta)
439 6551 182755 if ($val > $alpha)
453 106325 815479 unless my $state = $position->doMove($move)
460 225256 590223 if $see <= -100
463 0 590223 if ($move == $tt_move) { }
492 55754 390744 if ($val >= $beta)
503 6412 384332 if ($val > $alpha)
511 0 6412 if ($is_pv)
558 305 107 if (do { my $mask = $score >> 63; $score + $mask ^ $mask } > 14488)
563 0 307 if ($@)
564 0 0 if ($@ ne "PLISCO_ABORTED\n")
590 0 307 unless (@legal)
600 0 307 if ($self->{'debug'})
608 307 0 if (@line) { }