Skip to content

Commit

Permalink
Fix array literal transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
hajduakos committed Aug 11, 2020
1 parent dbd22b0 commit 62e3447
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ private com.microsoft.z3.Expr transformArrayNeq(final ArrayNeqExpr<?, ?> expr) {
}

private com.microsoft.z3.Expr transformArrayLit(final ArrayLitExpr<?, ?> expr) {
com.microsoft.z3.ArrayExpr running = context.mkConstArray(transformer.toSort(expr.getElseElem().getType()), toTerm(expr.getElseElem()));
com.microsoft.z3.ArrayExpr running = context.mkConstArray(transformer.toSort(expr.getType().getIndexType()), toTerm(expr.getElseElem()));
for (Tuple2<? extends Expr<?>, ? extends Expr<?>> elem : expr.getElements()) {
running = context.mkStore(running, toTerm(elem.get1()), toTerm(elem.get2()));
}
Expand Down

0 comments on commit 62e3447

Please sign in to comment.