@Override public void visit(AssignmentNode node) { node.setValue(RoundingDFGVisitor.round(node.getValue(), numberOfDigits)); }
@Override public void visit(AssignmentNode node) { node.getValue().accept(dfgVisitor); if (dfgVisitor.result != null) { node.setValue(dfgVisitor.result); dfgVisitor.result = null; } super.visit(node); }
@Override public void visit(AssignmentNode node) { node.getValue().accept(this); if (replace) { node.setValue(toReplace); replace = false; } super.visit(node); }
@Override public void visit(AssignmentNode node) { node.getValue().accept(expressionVisitor); if (resultValue != null) { node.setValue(resultValue); resultValue = null; } super.visit(node); } }
@Override public void visit(AssignmentNode node) { node.getValue().accept(expressionVisitor); if (replaceWith != null) { node.setValue(replaceWith); replaceWith = null; } super.visit(node); } }
@Override public void visit(AssignmentNode node) { currentAssignment = node; node.getValue().accept(this); node.setValue(nx); node.getSuccessor().accept(this); }
public void visit(AssignmentNode node) { ReplaceVisitor replaceVisitor = new ReplaceVisitor() { @Override public void visit(Variable node) { if (mapExpressions.containsKey(node)) result = mapExpressions.get(node); } @Override public void visit(MultivectorComponent node) { if (mapExpressions.containsKey(node)) result = mapExpressions.get(node); } }; node.setValue(replaceVisitor.replace(node.getValue())); mapExpressions.put(node.getVariable(), node.getValue()); }
@Override public void visit(AssignmentNode node) { node.getSuccessor().accept(this); node.getValue().accept(this); node.setValue(resultExpr); }
@Override public void visit(AssignmentNode node) { node.getSuccessor().accept(this); node.getValue().accept(this); node.setValue(resultExpr); }
@Override public void visit(AssignmentNode node) { node.setValue(performConstantPropagationOnExpression(node.getValue())); // get variable component of target dfgVisitorUsedVariables.getVariables().clear(); node.getVariable().accept(dfgVisitorUsedVariables); VariableComponent target = dfgVisitorUsedVariables.getVariables().getFirst(); // remove variable component from mapConstants, because of re-assignment mapConstants.remove(target); if (isFloatConstant(node.getValue())) { mapConstants.put(target, (FloatConstant) node.getValue()); } super.visit(node); }
@Override public void visit(AssignmentNode node) { System.out.println("Replacer : Assginment Node " + node.getVariable().toString()+" visited------------------------------------"); node.getValue().accept(this); node.setValue(nx); node.getSuccessor().accept(this); }
@Override public void visit(AssignmentNode node) { node.getValue().accept(dfgReplacer); if (dfgReplacer.result != null) { node.setValue(dfgReplacer.result); dfgReplacer.result = null; } if (replaceMap.containsKey(node.getVariable().getName())) node.setVariable((Variable) replaceMap.get(node.getVariable().getName()).copy()); }
@Override public void visit(AssignmentNode node) { curNode = node; while (containsMacroCall(node.getValue()) && !error) { replacer.result = null; node.getValue().accept(replacer); if (replacer.result != null) node.setValue(replacer.result); } super.visit(node); }
for (AssignmentNode node: list) { node.setVariable((Variable) visitor.replace(node.getVariable())); node.setValue(visitor.replace(node.getValue()));
@Override public void visit(AssignmentNode node) { node.setVariable((Variable) visitor.replace(node.getVariable())); node.setValue(visitor.replace(node.getValue())); super.visit(node); }
for (String io : connected) { Expression exp = MaximaRoutines.getExpressionFromMaximaOutput(io); listIterator.next().setValue(exp);
@Override public void visit(AssignmentNode node) { // replace all variables that are in mapOneExpressions Expression value = node.getValue(); node.setValue(performExpressionReplacements(value)); mapOneExpressions.remove(getVariableComponent(node.getVariable())); // if this is no output variable assignment if (!tabuVariables.contains(getVariableComponent(node.getVariable()))) { // if the value is only a Variable then put it in mapOneExpressions and remove this AssignmentNode DFGNodeType typeValue = DFGNodeTypeGetter.getTypeOfDFGNode(node.getValue()); if (typeValue == DFGNodeType.MultivectorComponent || typeValue == DFGNodeType.Variable) { mapOneExpressions.put( getVariableComponent(node.getVariable()), getVariableComponent(node.getValue())); setGraphModified(); nodeRemovals.add(node); } } super.visit(node); }
for (AssignmentNode node: nodes) { node.setVariable((Variable) visitor.replace(node.getVariable())); node.setValue(visitor.replace(node.getValue()));
for (AssignmentNode node: nodes) { node.setVariable((Variable) visitor.replace(node.getVariable())); node.setValue(visitor.replace(node.getValue()));
@Override public void visit(AssignmentNode node) { // node.getVariable().getName(); currAssignmentNode = node; currAssignString= node.getVariable().toString(); resultExpr = null; if (( node.getValue() instanceof Negation) &&((Negation)node.getValue()).getOperand() instanceof FloatConstant ) { FloatConstant f = (FloatConstant)((Negation)node.getValue()).getOperand(); node.setValue(new FloatConstant(-f.getValue())); } if ((node.getValue() instanceof FloatConstant)) //&&(new Float(1.0) == ((FloatConstant) node.getValue()).getValue())) { { oneset.put(node.getVariable().toString(), ((FloatConstant) node.getValue()).getValue()); System.out.println("Found: " + node.getVariable().toString()+ " Value: " +((FloatConstant) node.getValue()).getValue() ); //node.getVariable(); node.getSuccessor().accept(this); } } else { node.getValue().accept(this); node.setValue(resultExpr); node.getSuccessor().accept(this); } // throw new UnsupportedOperationException("Not supported yet."); }