Skip to content
Snippets Groups Projects
Commit e69595de authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Report timeouts as timeouts, not unknown

parent f54da2c2
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ trait TimeoutSolver extends Solver with Interruptible {
val ti = new TimeoutFor(this)
protected var optTimeout: Option[Long] = None
var optTimeout: Option[Long] = None
def setTimeout(timeout: Long): this.type = {
optTimeout = Some(timeout)
......
......@@ -150,7 +150,18 @@ object AnalysisPhase extends LeonPhase[Program,VerificationReport] {
VCResult(VCStatus.Cancelled, Some(s), Some(dt))
case None =>
VCResult(VCStatus.Unknown, Some(s), Some(dt))
val status = s match {
case ts: TimeoutSolver =>
ts.optTimeout match {
case Some(t) if t < dt =>
VCStatus.Timeout
case _ =>
VCStatus.Unknown
}
case _ =>
VCStatus.Unknown
}
VCResult(status, Some(s), Some(dt))
case Some(false) =>
VCResult(VCStatus.Valid, Some(s), Some(dt))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment