/** * Returns a deep clone of this {@link AExitStmIR} node. * @return a deep clone of this {@link AExitStmIR} node */ public AExitStmIR clone() { return new AExitStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp) ); }
/** * Creates a deep clone of this {@link AExitStmIR} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link AExitStmIR} node */ public AExitStmIR clone(Map<INode,INode> oldToNewMap) { AExitStmIR node = new AExitStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
@Override public SStmIR caseAExitStm(AExitStm node, IRInfo question) throws AnalysisException { SExpIR expCg = node.getExpression() != null ? node.getExpression().apply(question.getExpVisitor(), question) : null; AExitStmIR exitCg = new AExitStmIR(); exitCg.setExp(expCg); return exitCg; }