Skip to content

Commit

Permalink
*** Experiment: UtArrayApplyForAll noop translation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtim committed Sep 13, 2022
1 parent dd27277 commit 2fb8861
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,11 @@ open class Z3TranslatorVisitor(

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

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

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

Expand Down

0 comments on commit 2fb8861

Please sign in to comment.