This file is indexed.

/usr/include/osl/move_classifier/safeMove.h is in libosl-dev 0.4.2-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
/* safeMove.h
 */
#ifndef OSL_MOVE_CLASSIFIER_SAFE_MOVE_H
#define OSL_MOVE_CLASSIFIER_SAFE_MOVE_H
#include "osl/move_classifier/kingOpenMove.h"
#include "osl/move_classifier/classifierTraits.h"
#include "osl/state/numEffectState.h"
namespace osl
{
  namespace move_classifier
  {
    /**
     * 元々,手番の玉に王手がかかっていない状態で自殺手でないことをチェック.
     * DropMoveの時には呼べない
     */
    template <Player P>
    struct SafeMove
    {
      static bool isMember(const NumEffectState& state, 
			   Ptype ptype,Square from,Square to)
      {
	assert(! from.isPieceStand());
	assert(state.pieceOnBoard(from).owner() == P);
	/**
	 * 元々王手がかかっていないと仮定しているので,自分を
	 * 取り除いた上でhasEffectByを呼ばなくても良い
	 */
	if (ptype==KING)
	  return ! state.template hasEffectAt<PlayerTraits<P>::opponent>(to);
	return ! KingOpenMove<P>::isMember(state,ptype,from,to);
      }
    };

    template <Player P> struct ClassifierTraits<SafeMove<P> >
    {
      static const bool drop_suitable = false;
      static const bool result_if_drop = true;
    };
  }
}
#endif /* OSL_MOVE_CLASSIFIER_SAFE_MOVE_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: