Skip to content
Snippets Groups Projects
Commit 8cb684c3 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Catch Exception in getModel

parent e23beb33
No related branches found
No related tags found
No related merge requests found
...@@ -187,7 +187,12 @@ class SMTLIBZ3Solver(context: LeonContext, program: Program) extends SMTLIBSolve ...@@ -187,7 +187,12 @@ class SMTLIBZ3Solver(context: LeonContext, program: Program) extends SMTLIBSolve
variables.getA(s) match { variables.getA(s) match {
case Some(id) => case Some(id) =>
// EK: this is a little hack, we pass models for array functions as let-defs // EK: this is a little hack, we pass models for array functions as let-defs
model += id -> fromSMT(e, id.getType)(Map(), modelFunDefs) try {
model += id -> fromSMT(e, id.getType)(Map(), modelFunDefs)
} catch {
case _ : Unsupported =>
}
case _ => // function, should be handled elsewhere case _ => // function, should be handled elsewhere
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment