@@ -833,17 +833,15 @@ abstract class TranslatedVariableAccess extends TranslatedNonConstantExpr {
833833
834834class TranslatedNonFieldVariableAccess extends TranslatedVariableAccess {
835835 TranslatedNonFieldVariableAccess ( ) {
836+ not expr instanceof FieldAccess and
837+ // If the parent expression is a `LocalVariableDeclAndInitExpr`,
838+ // then translate only the variables that are initializers (on the RHS)
839+ // and not the LHS (the address of the LHS is generated during
840+ // the translation of the initialization).
836841 (
837- not expr instanceof FieldAccess and
838- // If the parent expression is a `LocalVariableDeclAndInitExpr`,
839- // then translate only the variables that are initializers (on the RHS)
840- // and not the LHS (the address of the LHS is generated during
841- // the translation of the initialization).
842- (
843- expr .getParent ( ) instanceof LocalVariableDeclAndInitExpr
844- implies
845- expr = expr .getParent ( ) .( LocalVariableDeclAndInitExpr ) .getInitializer ( )
846- )
842+ expr .getParent ( ) instanceof LocalVariableDeclAndInitExpr
843+ implies
844+ expr = expr .getParent ( ) .( LocalVariableDeclAndInitExpr ) .getInitializer ( )
847845 )
848846 or
849847 // Static field accesses should be modeled as `TranslatedNonFieldAccess`
@@ -879,7 +877,7 @@ class TranslatedNonFieldVariableAccess extends TranslatedVariableAccess {
879877
880878class TranslatedFieldAccess extends TranslatedVariableAccess {
881879 override FieldAccess expr ;
882-
880+
883881 TranslatedFieldAccess ( ) {
884882 // Static field accesses should be modeled as `TranslatedNonFieldAccess`
885883 not expr .getTarget ( ) .isStatic ( )
0 commit comments