Adding print tuner ...
authorHamed Gorjiara <hgorjiar@uci.edu>
Thu, 15 Nov 2018 18:19:41 +0000 (10:19 -0800)
committerHamed Gorjiara <hgorjiar@uci.edu>
Thu, 15 Nov 2018 18:19:41 +0000 (10:19 -0800)
src/Test/printtuner.cc [new file with mode: 0644]

diff --git a/src/Test/printtuner.cc b/src/Test/printtuner.cc
new file mode 100644 (file)
index 0000000..1c63b2f
--- /dev/null
@@ -0,0 +1,15 @@
+#include "csolver.h"
+#include "multituner.h"
+#include "searchtuner.h"
+
+int main(int argc, char **argv) {
+       if (argc < 2) {
+               printf("You should specify a tuner: %s <best.tuner>\n", argv[0]);
+               exit(-1);
+       }
+       
+       SearchTuner *tuner = new SearchTuner(argv[1]);
+       tuner->print();
+       delete tuner;
+       return 0;
+}