diff options
| -rw-r--r-- | test/graph/2sat.cpp | 3 | ||||
| -rw-r--r-- | test/graph/2sat.cpp.awk | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/graph/2sat.cpp b/test/graph/2sat.cpp index fc3186e..cf37131 100644 --- a/test/graph/2sat.cpp +++ b/test/graph/2sat.cpp @@ -1,9 +1,6 @@ #include "../util.h" #include <graph/scc.cpp> -#define static vector<vector<int>> adj; static // hacky... #include <graph/2sat.cpp> -#undef static -#undef adj struct RandomClause { int a, b; diff --git a/test/graph/2sat.cpp.awk b/test/graph/2sat.cpp.awk new file mode 100644 index 0000000..d0215d8 --- /dev/null +++ b/test/graph/2sat.cpp.awk @@ -0,0 +1,6 @@ +/scc variablen/ { + print; + print "\tvector<vector<int>> adj;"; + next +} +{ print } |
