This file is indexed.

/usr/include/polybori/groebner/PairLS.h is in libpolybori-groebner-dev 0.8.3-3+b2.

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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// -*- c++ -*-
//*****************************************************************************
/** @file PairLS.h 
 *
 * @author Michael Brickenstein 
 * @date 2011-06-30 
 *
 * This file includes the definition of the class @c PairLS.
 *
 * @par Copyright:
 *   (c) 2006-2010 by The PolyBoRi Team
 *
**/
//*****************************************************************************

#ifndef polybori_groebner_PairLS_h_
#define polybori_groebner_PairLS_h_

// include basic definitions
#include "groebner_defs.h"
#include <boost/shared_ptr.hpp>

BEGIN_NAMESPACE_PBORIGB

typedef boost::shared_ptr<PairData> pair_data_ptr;

enum {
  VARIABLE_PAIR,
  IJ_PAIR,
  DELAYED_PAIR
};



/** @class PairLS
 * @brief This class defines PairLS.
 *
 **/
class PairLS{
private:
  int type;
public:
  int getType() const{
    return type;
  }
  wlen_type wlen;
  deg_type sugar;
  //three sorts of pairs
  //x*poly, poly, i,j
  pair_data_ptr data;
  Monomial lm; //must not be the real lm, can be lm of syzygy or something else
  Polynomial extract(const PolyEntryVector& v){
    return data->extract(v);
  }
  PairLS(int i, int j, const PolyEntryVector &v):
    wlen(v[i].weightedLength+v[j].weightedLength-2),
    data(new IJPairData(i,j)),
    lm(v[i].lead*v[j].lead)
  {
    type=IJ_PAIR;
    sugar=lm.deg()+std::max(v[i].ecart(),v[j].ecart());
  }
  PairLS(int i, idx_type v, const PolyEntryVector &gen,int type):
     // sugar(gen[i].lmDeg+1),///@only do that because of bad criteria impl
    wlen(gen[i].weightedLength+gen[i].length),
    sugar(gen[i].deg+1),
    data(new VariablePairData(i,v)), lm(gen[i].lead) {
    PBORI_ASSERT(type==VARIABLE_PAIR);
    this->type=type;
  }
  
  PairLS(const Polynomial& delayed):
    type(DELAYED_PAIR), wlen(delayed.eliminationLength()), 
    sugar(delayed.deg()),
    data(new PolyPairData(delayed)), 
    lm(delayed.lead()) { }
  
};

END_NAMESPACE_PBORIGB

#endif /* polybori_PairLS_h_ */