This file is indexed.

/usr/include/osl/eval/endgame/attackKing.h is in libosl-dev 0.6.0-3.1.

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
49
50
51
52
53
54
55
56
57
58
59
/**
 * attackKing.h
 */
#ifndef EVAL_ENDGAME_ATTACKKING_H
#define EVAL_ENDGAME_ATTACKKING_H

#include "osl/eval/endgame/kingPieceTable.h"
#include "osl/state/simpleState.h"

namespace osl
{
  namespace eval
  {
    namespace endgame
    {
      /**
       * 玉の位置*攻撃駒の位置*ptype
       */
      class AttackKing
      {
	struct Table : public KingPieceTable
	{
	  Table();
	private:
	  void adhoc_edge_king_1(const Player player,
				 const Square king,
				 const Square attack);
	  void adhoc_edge_king_2(const Player player,
				 const Square king,
				 const Square attack);
	};
	static Table table;
      public:
	static int valueOf(const Piece king, const Piece attacker)
	{
	  return valueOf(king, attacker.ptypeO(), attacker.square());
	}
	static int valueOf(Piece king, PtypeO ptypeo, Square position)
	{
	  assert(king.ptype() == KING);
	  if (getOwner(ptypeo) == king.owner())
	    return 0;
	  return table.valueOf(king.square(), king.owner(), 
			       position, getPtype(ptypeo));
	}
	static void saveText(const char *filename);
	static void loadText(const char *filename) { table.loadText(filename); }
	static void resetWeights(const int *w) { table.resetWeights(w); }
      };
    } // namespace endgame
  } // namespace endgame
} // namespace osl

#endif /* EVAL_ENDGAME_ATTACKKING_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End: