Skip to content

Commit

Permalink
Merge pull request #149 from ftsrg/arrayinit_fix
Browse files Browse the repository at this point in the history
Fixed ArrayInitExpr withOps bug
  • Loading branch information
mondokm authored Dec 1, 2021
2 parents 811e180 + 7410af6 commit 92051f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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 = "3.0.1"
version = "3.0.2"

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 @@ -47,7 +47,7 @@ public final List<Expr<OpType>> getOps() {
}

@Override
public final MultiaryExpr<OpType, ExprType> withOps(final List<? extends Expr<?>> ops) {
public MultiaryExpr<OpType, ExprType> withOps(final List<? extends Expr<?>> ops) {
checkNotNull(ops);
if (ops.isEmpty()) {
return with(ImmutableList.of());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public MultiaryExpr<Type, ArrayType<IndexType, ElemType>> with(Iterable<? extend
return ArrayInitExpr.of(newOps, elseElem, type);
}

@Override
public MultiaryExpr<Type, ArrayType<IndexType, ElemType>> withOps(List<? extends Expr<?>> ops) {
return with(ops.stream().map(op -> (Expr<Type>) op).collect(Collectors.toList()));
}

@Override
protected int getHashSeed() {
return HASH_SEED;
Expand Down

0 comments on commit 92051f0

Please sign in to comment.