This file is indexed.

/usr/include/osl/eval/endgame/kingPieceValues.h is in libosl-dev 0.8.0-1.4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef ENDGAME_KINGPIECEVALUES_H
#define ENDGAME_KINGPIECEVALUES_H
#include "osl/container/pieceValues.h"
#include "osl/simpleState.h"

namespace osl
{
  namespace eval
  {
    namespace endgame
    {
      /**
       * @param Eval AttackKing や DefenseKing
       */
      template <class Eval>
      struct KingPieceValues
      {
	/**
	 * 局面の駒の値を求める
	 */
	static void setValues(const SimpleState&, PieceValues&);
      };
    } // namespace endgame
  } // namespace eval
} // namespace osl

template <class Eval>
void osl::eval::endgame::
KingPieceValues<Eval>::setValues(const SimpleState& state, PieceValues& values)
{
  values.fill(0);
  // 速度は無視
  const Piece king_black = state.kingPiece(BLACK);
  const Piece king_white = state.kingPiece(WHITE);
  
  for (int i=0; i<Piece::SIZE; i++) {
    if(!state.usedMask().test(i)) continue;
    const Piece target = state.pieceOf(i);
    values[i] = (Eval::valueOf(king_black, target) 
		 + Eval::valueOf(king_white, target));
  }
}

#endif /* ENDGAME_KINGPIECEVALUES_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: