Skip to content
Snippets Groups Projects
Commit 3a766df1 authored by dohan's avatar dohan
Browse files

find unchanged variables in nested tuples

parent 904a513b
No related branches found
No related tags found
No related merge requests found
...@@ -376,6 +376,10 @@ public class BOperation extends BuiltInOPs implements ASTConstants, ...@@ -376,6 +376,10 @@ public class BOperation extends BuiltInOPs implements ASTConstants,
// Tuple // Tuple
for (int i = 0; i < k.getArgs().length; i++) { for (int i = 0; i < k.getArgs().length; i++) {
OpApplNode var = (OpApplNode) k.getArgs()[i]; OpApplNode var = (OpApplNode) k.getArgs()[i];
//findUnchangedVariablesInOpApplNode(var);
if(!(var.getOperator() instanceof OpDeclNode)) {
throw new RuntimeException(var.getOperator().getName() + " " + var.getLocation());
}
unchangedVariablesList.add((OpDeclNode) var unchangedVariablesList.add((OpDeclNode) var
.getOperator()); .getOperator());
String name = var.getOperator().getName().toString(); String name = var.getOperator().getName().toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment