This file is indexed.

/usr/include/osl/move_probability/moveInfo.h is in libosl-dev 0.6.0-3.3.

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
/* moveInfo.h
 */
#ifndef OSL_MOVE_PROBABILITY_MOVEINFO_H
#define OSL_MOVE_PROBABILITY_MOVEINFO_H

#include "osl/state/numEffectState.h"
#include "osl/pieceStand.h"
namespace osl
{
  namespace move_probability
  {
    struct StateInfo;
    struct MoveInfo
    {
      Move move;
      int see, plain_see;
      bool check, open_check;
      Player player;
      mutable int stand_index_cache;
      MoveInfo(const StateInfo&, Move);

      int standIndex(const NumEffectState& state) const
      {
	if (stand_index_cache < 0) {
	  stand_index_cache = 0;
	  assert(PieceStand::order[6] == PAWN);
	  for (size_t i=0; i+1<PieceStand::order.size(); ++i) {
	    Ptype ptype = PieceStand::order[i];
	    int count = state.countPiecesOnStand(player, ptype);
	    if (move.isDrop() && ptype == move.ptype())
	      --count;
	    stand_index_cache = stand_index_cache * 2 + (count > 0);
	  }
	}
	return stand_index_cache;
      }
      bool adhocAdjustSlider(const StateInfo&) const;
      bool adhocAdjustBishopFork(const StateInfo&) const;
      bool adhocAdjustBreakThreatmate(const StateInfo&) const;
      bool adhocAdjustAttackCheckmateDefender(const StateInfo&) const;
      bool adhocAdjustKeepCheckmateDefender(const StateInfo&) const;
    };
  }
}

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