Skip to content
Snippets Groups Projects
Commit 074c1ac8 authored by Nicolas Voirol's avatar Nicolas Voirol
Browse files

Small fixes for solver factories

parent df8ef8c8
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ object SolverFactory {
}
def apply(p: InoxProgram, opts: Options): SolverFactory { val program: p.type; type S <: TimeoutSolver } =
p.ctx.options.findOptionOrDefault(InoxOptions.optSelectedSolvers).toSeq match {
opts.findOptionOrDefault(InoxOptions.optSelectedSolvers).toSeq match {
case Seq() => throw FatalError("No selected solver")
case Seq(single) => apply(single, p, opts)
case multiple => PortfolioSolverFactory(p) {
......
......@@ -26,7 +26,7 @@ trait PortfolioSolverFactory extends SolverFactory { self =>
}
object PortfolioSolverFactory {
def apply(p: InoxProgram)
def apply(p: Program)
(factories: Seq[SolverFactory { val program: p.type; type S <: TimeoutSolver }]):
PortfolioSolverFactory { val program: p.type; type S <: TimeoutSolver } = new {
val program: p.type = p
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment