Skip to content

Commit e7d5933

Browse files
committed
Disabled CVC4 and Princess -- revisit this once the rest is clean.
1 parent 34036a4 commit e7d5933

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

src/main/scala/inox/solvers/SolverFactory.scala

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ object SolverFactory {
229229
() => new SolverBase(p, ctx, enc, chooseEnc)
230230
})
231231

232+
// FIXME(gsps): No idea why CVC4Solver is not found here.
233+
// FIXME(gsps): Probably have to move `chooses` and maybe `theories` into constructors.
234+
/*
232235
case "smt-cvc4" => create(p)(finalName, {
233236
val ev = sem.getEvaluator(ctx)
234237
val chooseEnc = ChooseEncoder(p)(enc)
@@ -237,11 +240,11 @@ object SolverFactory {
237240
val progEnc = fullEnc andThen theoryEnc
238241
val targetSem = progEnc.targetProgram.getSemantics
239242
240-
() => new {
243+
() => new UnrollingSolver with TimeoutSolver with tip.TipDebugger {
241244
val program: p.type = p
242245
val context = ctx
243246
val encoder: enc.type = enc
244-
} with UnrollingSolver with TimeoutSolver with tip.TipDebugger {
247+
245248
val semantics = sem
246249
val chooses: chooseEnc.type = chooseEnc
247250
val theories: theoryEnc.type = theoryEnc
@@ -250,27 +253,31 @@ object SolverFactory {
250253
override protected lazy val fullEncoder = fullEnc
251254
override protected lazy val programEncoder = progEnc
252255
253-
protected val underlying = new {
256+
protected val underlying = inox.solvers.smtlib.CVC4Solver {
254257
val program: progEnc.targetProgram.type = progEnc.targetProgram
255258
val context = ctx
256-
} with smtlib.CVC4Solver {
259+
257260
val semantics: program.Semantics = targetSem
258261
}
259262
}
260263
})
264+
*/
261265

266+
// FIXME(gsps): AbstractPrincessSolver and PrincessSolver still have lots of errors.
267+
// FIXME(gsps): Probably have to move `chooses` and maybe `theories` into constructors.
268+
/*
262269
case "princess" => create(p)(finalName, {
263270
val ev = sem.getEvaluator(ctx)
264271
val chooseEnc = ChooseEncoder(p)(enc)
265272
val fullEnc = enc andThen chooseEnc
266273
val theoryEnc = theories.Princess(fullEnc)(ev)
267274
val progEnc = fullEnc andThen theoryEnc
268275
269-
() => new {
276+
() => new princess.PrincessSolver with TimeoutSolver {
270277
val program: p.type = p
271278
val context = ctx
272279
val encoder: enc.type = enc
273-
} with princess.PrincessSolver with TimeoutSolver {
280+
274281
val semantics = sem
275282
val chooses: chooseEnc.type = chooseEnc
276283
override protected lazy val theories: theoryEnc.type = theoryEnc
@@ -280,6 +287,7 @@ object SolverFactory {
280287
lazy val targetSemantics: targetProgram.Semantics = targetProgram.getSemantics
281288
}
282289
})
290+
*/
283291

284292
case _ => throw FatalError("Unknown solver: " + finalName)
285293
}

src/main/scala/inox/solvers/princess/AbstractPrincessSolver.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2009-2018 EPFL, Lausanne */
1+
/*/* Copyright 2009-2018 EPFL, Lausanne */
22
33
package inox
44
package solvers
@@ -539,3 +539,4 @@ trait AbstractPrincessSolver extends AbstractSolver with ADTManagers {
539539
540540
def interrupt() = interruptCheckSat = true
541541
}
542+
*/

src/main/scala/inox/solvers/princess/PrincessSolver.scala

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2009-2018 EPFL, Lausanne */
1+
/*/* Copyright 2009-2018 EPFL, Lausanne */
22
33
package inox
44
package solvers
@@ -24,20 +24,20 @@ trait PrincessSolver extends AbstractUnrollingSolver { self =>
2424
val targetProgram: Program { val trees: fullEncoder.targetProgram.trees.type }
2525
} = solvers.theories.Princess(fullEncoder)(semantics.getEvaluator)
2626
27-
protected object underlying extends {
27+
protected object underlying extends AbstractPrincessSolver {
2828
val program: targetProgram.type = targetProgram
2929
val context = self.context
30-
} with AbstractPrincessSolver {
30+
3131
lazy val semantics = targetSemantics
3232
}
3333
3434
type Encoded = IExpression
3535
36-
object templates extends {
36+
object templates extends Templates {
3737
val program: targetProgram.type = targetProgram
3838
val context = self.context
3939
val semantics: targetProgram.Semantics = self.targetSemantics
40-
} with Templates {
40+
4141
import program.trees._
4242
4343
type Encoded = self.Encoded
@@ -88,9 +88,9 @@ trait PrincessSolver extends AbstractUnrollingSolver { self =>
8888
8989
protected def declareVariable(v: t.Variable): IExpression = underlying.declareVariable(v)
9090
91-
protected def wrapModel(model: underlying.Model): super.ModelWrapper = ModelWrapper(model)
91+
protected def wrapModel(model: underlying.Model): ModelWrapper = PrincessModelWrapper(model)
9292
93-
private case class ModelWrapper(model: underlying.Model) extends super.ModelWrapper {
93+
private case class PrincessModelWrapper(model: underlying.Model) extends ModelWrapper {
9494
private val chooses: MutableMap[Identifier, t.Expr] = MutableMap.empty
9595
import IExpression._
9696
@@ -146,3 +146,4 @@ trait PrincessSolver extends AbstractUnrollingSolver { self =>
146146
underlying.free()
147147
}
148148
}
149+
*/

0 commit comments

Comments
 (0)