]> git.siccegge.de Git - master/cool-versuchung.git/commitdiff
Add experiment definition for TreeTab
authorChristoph Egger <christoph@christoph-egger.org>
Sun, 24 Apr 2016 13:19:44 +0000 (15:19 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Sun, 24 Apr 2016 13:19:44 +0000 (15:19 +0200)
cool.py

diff --git a/cool.py b/cool.py
index d6b400cc873677a773ffc733839d44c352edabb8..0bfdc15b8beb3e8f7ecc92bab77ce409d7acf4ae 100755 (executable)
--- a/cool.py
+++ b/cool.py
@@ -61,6 +61,27 @@ class CoolExperiment(SolverExperiment):
 
 
 
+class TreeTabExperiment(SolverExperiment):
+    inputs = { 'treetab' : TarArchive('ctlProver_r1368.tar') }
+    outputs = {}
+
+
+    def __init__(self):
+        TreeTabExperiment.inputs.update(SolverExperiment.inputs)
+        TreeTabExperiment.outputs.update(SolverExperiment.outputs)
+        super(TreeTabExperiment, self).__init__()
+
+
+    def build_solver(self):
+        with self.inputs.treetab as path:
+            shell("make")
+
+
+    def run_solver(self, formula):
+        with self.inputs.treetab as path:
+            shell("timeout 1001 ./ctl tree --verbose < %s" % formula)
+
+
 if __name__ == "__main__":
     import sys
     experiment = CoolExperiment()