Skip to content

Commit 2fb8861

Browse files
committed
*** Experiment: UtArrayApplyForAll noop translation
1 parent dd27277 commit 2fb8861

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

utbot-framework/src/main/kotlin/org/utbot/engine/pc/Z3TranslatorVisitor.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,11 @@ open class Z3TranslatorVisitor(
414414

415415
override fun visit(expr: UtArrayShiftIndexes): Expr = error("translate of UtArrayShiftIndexes expression")
416416

417-
override fun visit(expr: UtArrayApplyForAll): Expr = error("translate of UtArrayApplyForAll expression")
417+
// Hypothesis: UtArrayApplyForAll is kept by the rewriter only the corresponding array is not accessed,
418+
// so we don't actually need constraints on its elements (I am not sure, just an experiment)
419+
// Previous implementation:
420+
// error("translate of UtArrayApplyForAll expression")
421+
override fun visit(expr: UtArrayApplyForAll): Expr = expr.arrayExpression.accept(this)
418422

419423
override fun visit(expr: UtStringToArray): Expr = error("translate of UtStringToArray expression")
420424

0 commit comments

Comments
 (0)