This file is indexed.

/usr/include/libchkpt/chkpt.hpp is in libpsi3-dev 3.4.0-6+b1.

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
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
#ifndef _psi_src_lib_libchkpt_chkpt_hpp_
#define _psi_src_lib_libchkpt_chkpt_hpp_

#include <libchkpt/config.h>
#include <cstdlib>
#include <strings.h>
#include <cstring>

namespace psi {
	class PSIO;
	
	/**
		Chkpt is an instance of the libchkpt library. 
                Multiple instances are supported by having multiple 
                instances of libpsio available.
		
		Each instance is configured by the constructor:
		Chkpt new_instance(&libpsio_instance, PSIO_OPEN_OLD);
	*/
	class Chkpt {
		/*! Instance of libpsio to use. */
		PSIO *psio;
		/*! Active TOC entry prefix. */
		char chkpt_prefix[CHKPT_PREFIX_LEN];
	public:
		/*! Constructor. Calls PSIO::open to open the checkpoint file.
			\param psioObject Instance of libpsio to connect through
			\param status Either PSIO_OPEN_OLD or PSIO_OPEN_NEW.
		*/
		Chkpt(PSIO *psioObject, int status);
		/*! Destructor. Call PSIO::close to close the checkpoint file.*/
		~Chkpt();
		/// update this object. call rehash() if the state of the checkpoint file may have changed
		void rehash();

		char *rd_prefix();
		void wt_prefix(const char *prefix);
		void set_prefix(const char *prefix);
		void commit_prefix();
		void reset_prefix();
		char *get_prefix();

		char *build_keyword(const char *key);

		int exist(const char *keyword);
		int exist_add_prefix(const char *keyword);

		char *rd_label();
		void wt_label(char *label);

		double rd_escf();
		void wt_escf(double escf);

		double rd_eref();
		void wt_eref(double eref);

		double rd_ecorr();
		void wt_ecorr(double ecorr);

		double rd_enuc();
		void wt_enuc(double enuc);

		double rd_efzc();
		void wt_efzc(double efzc);

		double rd_etot();
		void wt_etot(double etot);

		int rd_disp();
		void wt_disp(int disp);

		double rd_eccsd();
		void wt_eccsd(double eccsd);

		double rd_e_t();
		void wt_e_t(double e_t);

		double rd_emp2();
		void wt_emp2(double emp2);
		
		int *rd_am2canon_shell_order(void);
		void wt_am2canon_shell_order(int *);
		
		int* rd_atom_dummy(void);
		void wt_atom_dummy(int *);

		int *rd_atom_position(void);
		void wt_atom_position(int *);

		double **rd_cartrep();
		void wt_cartrep(double **);

		double **rd_ccvecs(void);
		void wt_ccvecs(double **);

		double** rd_cdsalc2cd();
		void wt_cdsalc2cd(const double**);

		int *rd_clsdpi(void);
		void wt_clsdpi(int *);

		double *rd_contr(void);
		void wt_contr(double *);
		double **rd_contr_full(void);

		int rd_disp_irrep(void);
		void wt_disp_irrep(int);

		double rd_e_labeled(const char *);
		void wt_e_labeled(const char *, double);

		double *rd_evals(void);
		double *rd_alpha_evals(void);
		double *rd_beta_evals(void);
		void wt_evals(double *);
		void wt_alpha_evals(double *);
		void wt_beta_evals(double *);

		double *rd_exps(void);
		void wt_exps(double *);

		char **rd_felement(void);
		void wt_felement(char ** const);

		double **rd_fgeom(void);
		void wt_fgeom(double **);

		int *rd_frzcpi(void);
		void wt_frzcpi(int *);

		int *rd_frzvpi(void);
		void wt_frzvpi(int *);

		double **rd_geom(void);
		void wt_geom(double **);

		double* rd_grad(void);
		void wt_grad(double*);		

		int **rd_ict(void);
		void wt_ict(int **);

		int rd_iopen(void);
		void wt_iopen(int);

		char **rd_irr_labs(void);
		void wt_irr_labs(char **);

		double **rd_lagr(void);
		double **rd_alpha_lagr(void);
		double **rd_beta_lagr(void);
		void wt_lagr(double **);
		void wt_alpha_lagr(double **);
		void wt_beta_lagr(double **);

		int rd_max_am(void);
		void wt_max_am(int);

		bool rd_puream(void);
		void wt_puream(bool);

		int rd_nallatom(void);
		void wt_nallatom(int);

		int rd_nao(void);
		void wt_nao(int);

		int rd_natom(void);
		void wt_natom(int);

		int rd_ncalcs(void);

		int rd_nfzc(void);
		void wt_nfzc(int);

		int rd_nfzv(void);
		void wt_nfzv(int);

		int rd_nirreps(void);
		void wt_nirreps(int);

		int rd_nmo(void);
		void wt_nmo(int);

		int rd_nprim(void);
		void wt_nprim(int);

		int rd_nshell(void);
		void wt_nshell(int);

		int rd_nso(void);
		void wt_nso(int);

		int rd_nsymhf(void);
		void wt_nsymhf(int);

		int rd_num_unique_atom(void);
		void wt_num_unique_atom(int);

		int rd_num_unique_shell(void);
		void wt_num_unique_shell(int);

		int *rd_openpi(void);
		void wt_openpi(int *);

		int *rd_orbspi(void);
		void wt_orbspi(int *);

		int rd_override_occ(void);
		void wt_override_occ(int);

		int rd_phase_check(void);
		void wt_phase_check(int);

		int rd_ref(void);
		void wt_ref(int);

		int rd_rottype(void);
		void wt_rottype(int);

		double **rd_rref(void);
		void wt_rref(double **);

		double **rd_scf(void);
		double **rd_alpha_scf(void);
		double **rd_beta_scf(void);
		void wt_scf(double **);
		void wt_alpha_scf(double **);
		void wt_beta_scf(double **);
		double **rd_local_scf(void);
		void wt_local_scf(double **);
		double **rd_scf_irrep(int irrep);
		double **rd_alpha_scf_irrep(int irrep);
		double **rd_beta_scf_irrep(int irrep);
		void wt_scf_irrep(double**, int);
		void wt_alpha_scf_irrep(double**, int);
		void wt_beta_scf_irrep(double**, int);
		double** set_mo_phases(double**, int, int);
		
		int **rd_shell_transm(void);
		void wt_shell_transm(int **);

		int *rd_sloc(void);
		void wt_sloc(int *);

		int *rd_shells_per_am(void);
		void wt_shells_per_am(int *);

		int *rd_sloc_new(void);
		void wt_sloc_new(int *);

		int *rd_snuc(void);
		void wt_snuc(int *);

		int *rd_snumg(void);
		void wt_snumg(int *);

		int *rd_sopi(void);
		void wt_sopi(int *);

		int *rd_sprim(void);
		void wt_sprim(int *);

		int *rd_statespi(void);
		void wt_statespi(int *);

		int *rd_stype(void);
		void wt_stype(int *);

		char *rd_sym_label(void);
		void wt_sym_label(char *sym_label);

		int *rd_symoper(void);
		void wt_symoper(int *);

		int *rd_ua2a(void);
		void wt_ua2a(int *);

		int *rd_us2s(void);
		void wt_us2s(int *);

		double **rd_usotao(void);
		void wt_usotao(double **);

		double **rd_usotbf(void);
		void wt_usotbf(double **);

		struct z_entry *rd_zmat(void);
		void wt_zmat(struct z_entry *);

		double *rd_zvals(void);
		void wt_zvals(double *zvals);
		
		int* rd_cdsalcpi();
		void wt_cdsalcpi(const int*);

        int rd_nfragment(void);
        void wt_nfragment(int);

        int *rd_natom_per_fragment(void);
        void wt_natom_per_fragment(int *);

        int *rd_nallatom_per_fragment(void);
        void wt_nallatom_per_fragment(int *);

        int *rd_nref_per_fragment(void);
        void wt_nref_per_fragment(int *);

        double ***rd_fragment_coeff(void);
        void wt_fragment_coeff(double ***);
		
		/// allocate a block matrix -- analogous to libciomr's block_matrix
		template <typename T> static T** matrix(int nrow, int ncol) {
			T** mat = (T**) malloc(sizeof(T*)*nrow);
			const size_t size = sizeof(T)*nrow*ncol;
			mat[0] = (T*) malloc(size);
			//bzero((void*)mat[0],size);
                        memset((void*)mat[0], '\0', size);
			for(int r=1; r<nrow; ++r) mat[r] = mat[r-1] + ncol;
			return mat;
		}
		/// free a (block) matrix -- analogous to libciomr's free_block
		template <typename T> static void free(T** Block) {
			::free(Block[0]);  ::free(Block);
		}
		/// allocate an array -- analogous to libciomr's array<double>
		template <typename T> static T* array(int n) {
			const size_t size = sizeof(T)*n;
			T* arr = (T*) malloc(size);
			return arr;
		}
		/// free an array -- just for the hell of it
		template <typename T> static void free(T* Array) {
			::free(Array);
		}
	};
	
	extern Chkpt* _default_chkpt_lib_;
}

#endif