File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dartagnan/src/main/java/com/dat3m/dartagnan/program/processing Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,10 @@ public Expression visitGEPExpression(GEPExpr gep) {
7272 Type indexingType = gep .getIndexingType ();
7373
7474 final int baseSize = baseStride != null ? baseStride : types .getMemorySizeInBytes (indexingType );
75- Expression totalOffset = expressions .makeMul (expressions .makeValue (baseSize , offsetType ), indices .get (0 ));
75+ Expression totalOffset = expressions .makeMul (expressions .makeValue (baseSize , offsetType ), indices .get (0 ). accept ( this ) );
7676
7777 for (Expression index : indices .subList (1 , indices .size ())) {
78+ index = index .accept (this );
7879 Expression offset ;
7980 if (indexingType instanceof AggregateType aggType && index instanceof IntLiteral lit ) {
8081 final int intIndex = lit .getValueAsInt ();
You can’t perform that action at this time.
0 commit comments