This file is indexed.

/usr/share/sdpa/libexample/example5.cpp is in libsdpa-dev 7.3.9+dfsg-1build2.

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
/* -------------------------------------------------------------

This file is a component of SDPA
Copyright (C) 2004-2013 SDPA Project

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

------------------------------------------------------------- */
// Here is the start of ``example5.cpp''
  
#include <cstdio>
#include <cstdlib>
#include <sdpa_call.h>

int main(int argc, char** argv)
{
  if (argc != 4) {
    fprintf(stderr, "%s [Input] [Output] [Param] \n", argv[0]);
    exit(EXIT_FAILURE);
  }

  SDPA Problem1;
  FILE* fpresult;
  if ((fpresult = fopen(argv[2],"w")) == NULL) {
    fprintf(stderr, "Cannot Open %s \n", argv[2]);
  }
  Problem1.setResultFile(fpresult);

  // fpresult records which file is read from argv[3]
  Problem1.readParameter(argv[3],fpresult);
  // Note that readParameter should be called before readInput
  // Otherwise initial point cannot be decided by lambdaStar
  Problem1.readInput(argv[1],fpresult,SDPA::AUTO);

  Problem1.initializeSolve();
  
  // All results and intermediate log are written into fpresult
  Problem1.solve();

  fclose(fpresult);
  Problem1.terminate();
  exit(0);
}