@@ -378,16 +378,20 @@ public class BOperation extends BuiltInOPs implements ASTConstants,
...
@@ -378,16 +378,20 @@ public class BOperation extends BuiltInOPs implements ASTConstants,
OpApplNodevar=(OpApplNode)k.getArgs()[i];
OpApplNodevar=(OpApplNode)k.getArgs()[i];
//findUnchangedVariablesInOpApplNode(var);
//findUnchangedVariablesInOpApplNode(var);
// System.out.println("var.getOperator() = " + var.getOperator().getName() + " at " + var.getOperator() + " of class " + var.getOperator().getClass().getSimpleName());
// System.out.println("var.getOperator() = " + var.getOperator().getName() + " at " + var.getOperator() + " of class " + var.getOperator().getClass().getSimpleName());
// TO DO: support OpDefNode
if(var.getOperator()instanceofOpDefNode){
if(var.getOperator()instanceofOpDefNode){
// we have a definition
OpDefNodedef=(OpDefNode)var.getOperator();
OpDefNodedef=(OpDefNode)var.getOperator();
if(def.getParams().length>0){
if(def.getParams().length>0){
// we do not support definitions with arguments yet
thrownewRuntimeException("Declaration with parameters not supported for UNCHANGED: "+var.getOperator().getName()+" "+var.getLocation());
thrownewRuntimeException("Declaration with parameters not supported for UNCHANGED: "+var.getOperator().getName()+" "+var.getLocation());
}
}
ExprNodebody=def.getBody();
ExprNodebody=def.getBody();
//if(body instanceof OpApplNode)
// System.out.println("Body = " + body + " of class " + body.getClass().getSimpleName());
// System.out.println("Body = " + body + " of class " + body.getClass().getSimpleName());
thrownewRuntimeException("Declaration not yet supported for UNCHANGED: "+var.getOperator().getName()+" defined at "+body+" used at "+var.getLocation());