summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2025-04-22 13:52:14 +0200
committerGloria Mundi <gloria@gloria-mundi.eu>2025-04-22 13:52:14 +0200
commit41687abef9d2c93233439c0f43380a8280024406 (patch)
tree81fec04d9bd28675fde1c95ef8b408c82c478fa7 /test
parent0f1223c5396961a661da4f12caf0252f924de01b (diff)
parent3903044dd68da8ac6d589cfc873260dccbf4cd8f (diff)
merge mzuenni changes
Diffstat (limited to 'test')
-rw-r--r--test/graph/2sat.cpp3
-rw-r--r--test/graph/2sat.cpp.awk6
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 }