File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,12 @@ Date: 2012
11
11
#include < vector>
12
12
#include < string>
13
13
14
+ // #define USE_GLPK
15
+
16
+ #ifdef USE_GLPK
14
17
#include < glpk.h>
18
+ #endif
19
+
15
20
#include < string.h>
16
21
17
22
#include " goto2graph.h"
@@ -32,6 +37,12 @@ Date: 2012
32
37
#include < pthread.h>
33
38
#endif
34
39
40
+ // the use of this is bogus
41
+ static inline bool has_infix (const std::string &s, const std::string &infix)
42
+ {
43
+ return s.find (infix)!=std::string::npos;
44
+ }
45
+
35
46
/* ******************************************************************\
36
47
37
48
Function: instrumentert::local
@@ -1245,6 +1256,7 @@ void inline instrumentert::instrument_minimum_interference_inserter(
1245
1256
++e_i)
1246
1257
edges.insert (*e_i);
1247
1258
1259
+ #ifdef USE_GLPK
1248
1260
glp_prob* lp;
1249
1261
glp_iocp parm;
1250
1262
glp_init_iocp (&parm);
@@ -1358,6 +1370,7 @@ void inline instrumentert::instrument_minimum_interference_inserter(
1358
1370
free (imat);
1359
1371
free (jmat);
1360
1372
free (vmat);
1373
+ #endif
1361
1374
}
1362
1375
1363
1376
void instrumentert::instrument_minimum_interference ()
You can’t perform that action at this time.
0 commit comments