This file is indexed.

/usr/include/JAGS/util/logical.h is in jags 4.2.0-2.

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
#ifndef LOGICAL_H_
#define LOGICAL_H_

#include <vector>
#include <algorithm>

/**
 * Tests whether all elements of the boolean vector "mask" are true.
 */
inline bool allTrue (std::vector<bool> const &mask)
{
   return std::find(mask.begin(), mask.end(), false) == mask.end();
}

/**
 * Tests whether any elements of the boolean vector "mask" are true.
 */
inline bool anyTrue (std::vector<bool> const &mask)
{
   return std::find(mask.begin(), mask.end(), true) != mask.end();
}

#endif /* LOGICAL_H_ */