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

Fix the fix

parent eb451d8e
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,16 @@ abstract class RecursiveEvaluator(ctx: LeonContext, prog: Program, maxSteps: Int
def initRC(mappings: Map[Identifier, Expr]): RC
def initGC(): GC
// Used by leon-web, please do not delete
var lastGC: Option[GC] = None
private[this] var clpCache = Map[(Choose, Seq[Expr]), Expr]()
def eval(ex: Expr, mappings: Map[Identifier, Expr]) = {
try {
lastGC = Some(initGC())
ctx.timers.evaluators.recursive.runtime.start()
EvaluationResults.Successful(e(ex)(initRC(mappings), initGC()))
EvaluationResults.Successful(e(ex)(initRC(mappings), lastGC.get))
} catch {
case so: StackOverflowError =>
EvaluationResults.EvaluatorError("Stack overflow")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment