Skip to content
Snippets Groups Projects
Commit 741f179c authored by Nicolas Voirol's avatar Nicolas Voirol Committed by Etienne Kneuss
Browse files

Disallowed zero-arg smtlib FunctionApplications and updated smtlib

version
parent bba8bc86
No related branches found
No related tags found
No related merge requests found
......@@ -460,10 +460,12 @@ trait SMTLIBTarget {
case (_: Or) => Core.Or(sub.map(toSMT): _*)
case (_: IfExpr) => Core.ITE(toSMT(sub(0)), toSMT(sub(1)), toSMT(sub(2)))
case (f: FunctionInvocation) =>
FunctionApplication(
declareFunction(f.tfd),
sub.map(toSMT)
)
if (sub.isEmpty) declareFunction(f.tfd) else {
FunctionApplication(
declareFunction(f.tfd),
sub.map(toSMT)
)
}
case _ => reporter.fatalError("Unhandled nary "+e)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment