Skip to content

Commit

Permalink
Check for unsupported functions in Z3 back-transformation, fixes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
hajduakos committed Sep 28, 2020
1 parent 2254f57 commit c10037d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {

allprojects {
group = "hu.bme.mit.inf.theta"
version = "2.5.0"
version = "2.5.1"

apply(from = rootDir.resolve("gradle/shared-with-buildSrc/mirrors.gradle.kts"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package hu.bme.mit.theta.solver.z3;

import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.collect.ImmutableList.toImmutableList;
import static hu.bme.mit.theta.common.Utils.head;
import static hu.bme.mit.theta.common.Utils.tail;
Expand Down Expand Up @@ -117,6 +118,7 @@ public Expr<?> toExpr(final com.microsoft.z3.Expr term) {

public Expr<?> toFuncLitExpr(final FuncDecl funcDecl, final Model model,
final List<Decl<?>> vars) {
checkNotNull(model, "Unsupported function '" + funcDecl.getName() + "' in Z3 back-transformation.");
final com.microsoft.z3.FuncInterp funcInterp = model.getFuncInterp(funcDecl);
final List<ParamDecl<?>> paramDecls = transformParams(vars, funcDecl.getDomain());
pushParams(vars, paramDecls);
Expand Down

0 comments on commit c10037d

Please sign in to comment.