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

Improved terminator reliability by increasing timeout

parent b0984a43
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ trait Solvable extends Processor { ...@@ -34,7 +34,7 @@ trait Solvable extends Processor {
val sizeUnit : UnitDef = UnitDef(FreshIdentifier("$size"),Seq(sizeModule)) val sizeUnit : UnitDef = UnitDef(FreshIdentifier("$size"),Seq(sizeModule))
val newProgram : Program = program.copy( units = sizeUnit :: program.units) val newProgram : Program = program.copy( units = sizeUnit :: program.units)
SolverFactory.getFromSettings(context, newProgram).withTimeout(500.millisecond) SolverFactory.getFromSettings(context, newProgram).withTimeout(1000.millisecond)
} }
type Solution = (Option[Boolean], Map[Identifier, Expr]) type Solution = (Option[Boolean], Map[Identifier, Expr])
......
import leon.collection._
import leon.lang._
object Minimal {
case class Client(f: Int => List[Int])
val client = Client(x => List(1))
// def f(x: Int) = List(1)
// val client = Client(f)
def theorem() = {
client.f(0).size != BigInt(0)
} holds
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment