This file is indexed.

/usr/include/osl/move_classifier/directCheck.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
/* directCheck.h
 */
#ifndef OSL_MOVE_CLASSIFIER_DIRECTCHECK_H
#define OSL_MOVE_CLASSIFIER_DIRECTCHECK_H

#include "osl/ptype.h"
#include "osl/square.h"
#include "osl/player.h"
namespace osl
{
  namespace move_classifier
  {
    template <Player P>
    struct DirectCheck
    {
      static bool isMember(const NumEffectState& state, Ptype ptype, Square to)
      {
	/**
	 * 最初から王手ということはない.
	 */
	assert(!state.template hasEffectAt<P>(state.template kingSquare<PlayerTraits<P>::opponent>()));
	/**
	 * stateを動かしていないので,fromにある駒がtoからの利きを
	 * blockすることは
	 * あるが,blockされた利きが王手だったとすると,動かす前から王手
	 * だったとして矛盾するのでOK
	 */
	return state.hasEffectIf(newPtypeO(P,ptype),to,
				     state.template kingSquare<PlayerTraits<P>::opponent>());
      }

      template<class State>
      static bool isMember(const State& state, Ptype ptype, Square /*from*/, Square to)
      {
	return isMember(state, ptype, to);
      }
    };
  } // namespace move_classifier
} // namespace osl

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