Skip to content

Commit bac2e92

Browse files
Remove user-specific paths
1 parent c383504 commit bac2e92

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lisa-examples/src/main/scala/TPTPSolver.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import lisa.kernel.proof.SCProof
1111
import lisa.kernel.proof.SequentCalculus.Sequent
1212
import lisa.utils.ProofsShrink.optimizeProofIteratively
1313

14+
// TODO: separate axioms and definitions from the main sequent and give names to hypotheses
15+
1416
object TPTPSolver extends lisa.Main {
1517
sealed trait ProofType
1618
case object BySolver extends ProofType
@@ -20,7 +22,6 @@ object TPTPSolver extends lisa.Main {
2022
class ProblemSolverResults(val problem: Problem, val solverName: String, val solverStatus: String, val proofCode: String, val proofType: ProofType)
2123

2224
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
2425

2526
// We limit the execution time to solve each problem
2627
val timeoutTableau = .1.second
@@ -30,8 +31,10 @@ object TPTPSolver extends lisa.Main {
3031
val exportOptimizedProofs = true
3132
val exportBySolverProofs = true
3233

33-
val jsonResultsPath: String = "/home/auguste/Documents/EPFL/PhD/Projects/lisa/lisa-examples/src/main/resources/TPTPResults.json"
34-
val TPTPProblemPath: String = "/home/auguste/Documents/EPFL/PhD/Projects/TPTP-v8.2.0/Problems/"
34+
val jsonResultsPath: String = null
35+
if (jsonResultsPath == null) throw new Exception("Please specify a path for the JSON results file")
36+
val TPTPProblemPath: String = null
37+
if (TPTPProblemPath == null) throw new Exception("Please specify a path for the TPTP problems")
3538

3639
val d = new File(TPTPProblemPath)
3740
val libraries = d.listFiles.filter(_.isDirectory)

0 commit comments

Comments
 (0)