@@ -19,26 +19,26 @@ object TPTPSolver extends lisa.Main {
19
19
20
20
class ProblemSolverResults (val problem : Problem , val solverName : String , val solverStatus : String , val proofCode : String , val proofType : ProofType )
21
21
22
+ val spc = Seq (" PRP" , " FOF" ) // type of problems we want to extract and solve
23
+ // val spc = Seq("CNF") // almost no CNF problems are solved by Tableau, TODO: investigate why
24
+
25
+ // We limit the execution time to solve each problem
26
+ val timeoutTableau = .1 .second
27
+ val timeoutTautology = .1 .second
28
+
22
29
val exportOnlySolvedProblems = true
23
30
val exportOptimizedProofs = true
24
31
val exportBySolverProofs = true
25
32
26
33
val jsonResultsPath : String = " /home/auguste/Documents/EPFL/PhD/Projects/lisa/lisa-examples/src/main/resources/TPTPResults.json"
27
34
val TPTPProblemPath : String = " /home/auguste/Documents/EPFL/PhD/Projects/TPTP-v8.2.0/Problems/"
28
35
29
- val spc = Seq (" PRP" , " FOF" ) // type of problems we want to extract and solve
30
- // val spc = Seq("CNF") // almost no CNF problems are solved by Tableau, TODO: investigate why
31
-
32
- // val d = new File(TPTPProblemPath)
33
- // val libraries = d.listFiles.filter(_.isDirectory)
34
- // val probfiles = libraries.flatMap(_.listFiles).filter(_.isFile)
35
-
36
- val d = new File (TPTPProblemPath + " SYN/" )
37
- val probfiles = d.listFiles.filter(_.isFile)
36
+ val d = new File (TPTPProblemPath )
37
+ val libraries = d.listFiles.filter(_.isDirectory)
38
+ val probfiles = libraries.flatMap(_.listFiles).filter(_.isFile)
38
39
39
- // We limit the execution time to solve each problem
40
- val timeoutTableau = .1 .second
41
- val timeoutTautology = .1 .second
40
+ // val d = new File(TPTPProblemPath + "SYN/")
41
+ // val probfiles = d.listFiles.filter(_.isFile)
42
42
43
43
var nbProblemsExtracted = 0
44
44
var nbProblemsSolved = Map (" Tableau" -> 0 , " Tautology" -> 0 )
@@ -120,8 +120,8 @@ object TPTPSolver extends lisa.Main {
120
120
" problemFile" -> r.problem.file,
121
121
" solver" -> r.solverName,
122
122
" solverStatus" -> r.solverStatus,
123
- " solverProofCode " -> r.proofCode ,
124
- " proofType " -> r.proofType.getClass.getSimpleName.stripSuffix( " $ " )
123
+ " proofType " -> r.proofType.getClass.getSimpleName.stripSuffix( " $ " ) ,
124
+ " solverProofCode " -> r.proofCode
125
125
)
126
126
),
127
127
jsonWriter,
0 commit comments