| line | !l | l&&!r | l&&r | condition | 
 
| 565 | 0 | 0 | 0 | $promotion and not $w | 
 
| 664 | 0 | 0 | 0 | canmove($piece, $to, $_, %board) and isLegal($w, $_, $to, %board) | 
 
| 718 | 0 | 0 | 0 | scalar @moves and $moves[-1] eq '1' | 
 
| 755 | 0 | 0 | 0 | $promotion and not $w | 
 
| 883 | 0 | 0 | 0 | canmove($piece, $to, $_, %board) and isLegal($w, $_, $to, %board) | 
 
| 949 | 0 | 0 | 0 | $board_copy{$_} and $board_copy{$_} eq $findking | 
 
| 956 | 0 | 0 | 0 | $board_copy{$square} and $mask =~ /$board_copy{$square}/ | 
 
| 1079 | 0 | 0 | 0 | $_ and $board{$_} | 
 
| 1099 | 0 | 0 | 0 | $_ and $_ % 8 == 0 | 
 
| 1154 | 0 | 0 | 0 | $board{$from} and $board{'to'} | 
 
| 1155 | 0 | 0 | 0 | defined $board{$from} and defined $board{$to} | 
 
| 1163 | 0 | 0 | 0 | $rto eq $rfrom and $lto lt $lfrom | 
 
|  | 0 | 0 | 0 | $lto eq $lfrom and $rto lt $rfrom |