@Override public void visit(AssignmentNode node) { Variable curVariable = node.getVariable(); if (assigned.contains(curVariable)) { multipleAssignmentsVariable = curVariable; return; } else { assigned.add(curVariable); } super.visit(node); } }
@Override public void visit(AssignmentNode node) { mvDestComponents.add((MultivectorComponent) node.getVariable()); super.visit(node); }
@Override public void visit(AssignmentNode node) { colors.put(node.getVariable().getName(), currentColor); super.visit(node); }
@Override public void visit(AssignmentNode node) { colors.put(node.getVariable().getName(), currentColor); super.visit(node); }
@Override public Object visitOutputAssignmentCaseQ(CluCalcParser.OutputAssignmentCaseQContext ctx) { AssignmentNode assignment = (AssignmentNode) visit(ctx.val); SequentialNode n2 = graphBuilder.handlePrint(assignment.getVariable().copy()); if (inMacro) macroNodes.add(n2); else nodes.add(n2); return null; }
@Override public void visit(AssignmentNode node) { String varName = node.getVariable().getName(); if (curDestination != null) { if (!curDestination.equals(varName)) { prepareMap(); mapSetMv.clear(); } } curDestination = varName; super.visit(node); }
private int getMaxCountOfUsedArguments(List<SequentialNode> body) { int max = 0; for (SequentialNode node: body) { if (node instanceof AssignmentNode) { AssignmentNode aNode = (AssignmentNode) node; max = Math.max(max, MaxFunctionArgumentNumberGetter.getMaxFunctionArgumentNumber(aNode.getVariable())); max = Math.max(max, MaxFunctionArgumentNumberGetter.getMaxFunctionArgumentNumber(aNode.getValue())); } } return max; }
@Override public void visit(AssignmentNode node) { appendIndent(); code.append(node.getVariable()); code.append(" = "); code.append(node.getValue()); code.append(";\n"); node.getSuccessor().accept(this); }
@Override public void visit(AssignmentNode node) { if (!isUsed(node.getVariable().getName())) { unusedNodes.add(node); } super.visit(node); } }
@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) { node.getValue().accept(dfgVisitor); defined.add(node.getVariable().getName()); super.visit(node); }
@Override public void visit(AssignmentNode node) { node.getVariable().accept(this); code.append("&= "); node.getValue().accept(this); code.append("\\\\\n"); node.getSuccessor().accept(this); }
@Override public LinkedList<AssignmentNode> differentiate(LinkedList<AssignmentNode> toDerive, MultivectorComponent variable) { LinkedList<AssignmentNode> result = new LinkedList<AssignmentNode>(); for (AssignmentNode node : toDerive) { Expression differentiated = DFGDifferentiater.differentiate(node.getValue(), variable); ConstantFolding cF = new ConstantFolding(); differentiated.accept(cF); result.add(new AssignmentNode(null, node.getVariable(), cF.getResultExpr())); } return result; }
@Override public void visit(AssignmentNode node) { node.getVariable().accept(visitorExp); node.getValue().accept(visitorExp); super.visit(node); }
@Override public void visit(AssignmentNode node) { node.getVariable().accept(expressionVisitor); node.getValue().accept(expressionVisitor); super.visit(node); }
@Override public void visit(AssignmentNode node) { node.getVariable().accept(expressionVisitor); node.getValue().accept(expressionVisitor); 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) { findUndeclaredVariables(node.getValue()); graph.addLocalVariable(node.getVariable()); node.getSuccessor().accept(this); }
@Override public void visit(AssignmentNode node) { // just do nothing, because only MulitvectorComponent is important node.getValue().accept(this); node.getVariable().accept(this); node.getSuccessor().accept(this); }
@Override public void visit(AssignmentNode node) { node.setVariable((Variable) visitor.replace(node.getVariable())); node.setValue(visitor.replace(node.getValue())); super.visit(node); }