Skip to content

Commit

Permalink
(somewhat) more reliably load the strings portofolios
Browse files Browse the repository at this point in the history
  • Loading branch information
pruemmer committed Jan 26, 2024
1 parent 814f5f3 commit 0130775
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/scala/ostrich/OstrichMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ object OstrichMain {

private val ostrichStringTheory =
"ostrich.OstrichStringTheory"
private val ceaStringTheory =
"ostrich.cesolver.stringtheory.CEStringTheory"

/**
* The options forwarded to Princess. They will be overwritten by options
Expand All @@ -57,6 +55,18 @@ object OstrichMain {
*/
val options = List("-stringSolver=" + ostrichStringTheory, "-logo")

PortfolioSetup

def main(args: Array[String]) : Unit =
ap.CmdlMain.main((options ++ args).toArray)

}

object PortfolioSetup {

private val ceaStringTheory =
"ostrich.cesolver.stringtheory.CEStringTheory"

// Run the BW, ADT, and CEA solvers
ParallelFileProver.addPortfolio(
"strings", arguments => {
Expand Down Expand Up @@ -127,7 +137,4 @@ object OstrichMain {
threadNum)
})

def main(args: Array[String]) : Unit =
ap.CmdlMain.main((options ++ args).toArray)

}
2 changes: 2 additions & 0 deletions src/main/scala/ostrich/OstrichStringTheoryBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ object OstrichStringTheoryBuilder {

val version = "1.3.5"

PortfolioSetup

}

/**
Expand Down

0 comments on commit 0130775

Please sign in to comment.