Skip to content

Commit

Permalink
Inliner backtranslation: fix handling of old() variables
Browse files Browse the repository at this point in the history
  • Loading branch information
maul-esel committed Dec 17, 2024
1 parent f54f23d commit 2113945
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public Expression processExpression(final Expression expr) {
Expression newExpr = new IdentifierExpression(location, type, translatedId, translatedDeclInfo);
ModelUtils.copyAnnotations(expr, newExpr);
if (mapping.getGlobalInOldExprOfProc() != null) {
newExpr = new UnaryExpression(location, type, Operator.OLD, idExpr);
newExpr = new UnaryExpression(location, type, Operator.OLD, newExpr);
}
if (translatedDeclInfo.getStorageClass() == GLOBAL || translatedDeclInfo.getStorageClass() == QUANTIFIED
|| mActiveProcedures.contains(translatedDeclInfo.getProcedure())) {
Expand Down

0 comments on commit 2113945

Please sign in to comment.