Skip to content

Commit 68561f6

Browse files
author
kroening
committed
USE_GLPK
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@1853 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent b6fca6f commit 68561f6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/goto-instrument/goto2graph.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ Date: 2012
1111
#include <vector>
1212
#include <string>
1313

14+
//#define USE_GLPK
15+
16+
#ifdef USE_GLPK
1417
#include <glpk.h>
18+
#endif
19+
1520
#include <string.h>
1621

1722
#include "goto2graph.h"
@@ -32,6 +37,12 @@ Date: 2012
3237
#include <pthread.h>
3338
#endif
3439

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+
3546
/*******************************************************************\
3647
3748
Function: instrumentert::local
@@ -1245,6 +1256,7 @@ void inline instrumentert::instrument_minimum_interference_inserter(
12451256
++e_i)
12461257
edges.insert(*e_i);
12471258

1259+
#ifdef USE_GLPK
12481260
glp_prob* lp;
12491261
glp_iocp parm;
12501262
glp_init_iocp(&parm);
@@ -1358,6 +1370,7 @@ void inline instrumentert::instrument_minimum_interference_inserter(
13581370
free(imat);
13591371
free(jmat);
13601372
free(vmat);
1373+
#endif
13611374
}
13621375

13631376
void instrumentert::instrument_minimum_interference()

0 commit comments

Comments
 (0)