/** * Returns a deep clone of this {@link ASetSubsetBinaryExpIR} node. * @return a deep clone of this {@link ASetSubsetBinaryExpIR} node */ public ASetSubsetBinaryExpIR clone() { return new ASetSubsetBinaryExpIR( _sourceNode, _tag, _metaData, cloneNode(_type), cloneNode(_left), cloneNode(_right) ); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof ASetSubsetBinaryExpIR) { return toString().equals(o.toString()); } return false; }
/** * Called by the {@link ASetSubsetBinaryExpIR} node from {@link ASetSubsetBinaryExpIR#apply(IIsaAnalysis)}. * @param node the calling {@link ASetSubsetBinaryExpIR} node */ public void caseASetSubsetBinaryExpIR(ASetSubsetBinaryExpIR node) throws AnalysisException { _visitedNodes.add(node); inASetSubsetBinaryExpIR(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { node.getLeft().apply(this); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { node.getRight().apply(this); } outASetSubsetBinaryExpIR(node); }
@Override public SExpIR caseASubsetBinaryExp(ASubsetBinaryExp node, IRInfo question) throws AnalysisException { return question.getExpAssistant().handleBinaryExp(node, new ASetSubsetBinaryExpIR(), question); }
/** * Called by the {@link ASetSubsetBinaryExpIR} node from {@link ASetSubsetBinaryExpIR#apply(IAnalysis)}. * @param node the calling {@link ASetSubsetBinaryExpIR} node */ public void caseASetSubsetBinaryExpIR(ASetSubsetBinaryExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inASetSubsetBinaryExpIR(node, question); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this, question); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { node.getLeft().apply(this, question); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { node.getRight().apply(this, question); } outASetSubsetBinaryExpIR(node, question); }
/** * Called by the {@link ASetSubsetBinaryExpIR} node from {@link ASetSubsetBinaryExpIR#apply(IAnalysis)}. * @param node the calling {@link ASetSubsetBinaryExpIR} node */ public void caseASetSubsetBinaryExpIR(ASetSubsetBinaryExpIR node) throws AnalysisException { _visitedNodes.add(node); inASetSubsetBinaryExpIR(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { node.getLeft().apply(this); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { node.getRight().apply(this); } outASetSubsetBinaryExpIR(node); }
/** * Creates a deep clone of this {@link ASetSubsetBinaryExpIR} 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 ASetSubsetBinaryExpIR} node */ public ASetSubsetBinaryExpIR clone(Map<INode,INode> oldToNewMap) { ASetSubsetBinaryExpIR node = new ASetSubsetBinaryExpIR( _sourceNode, _tag, _metaData, cloneNode(_type, oldToNewMap), cloneNode(_left, oldToNewMap), cloneNode(_right, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link ASetSubsetBinaryExpIR} node from {@link ASetSubsetBinaryExpIR#apply(IAnalysis)}. * @param node the calling {@link ASetSubsetBinaryExpIR} node */ public A caseASetSubsetBinaryExpIR(ASetSubsetBinaryExpIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inASetSubsetBinaryExpIR(node)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this)); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { mergeReturns(retVal,node.getLeft().apply(this)); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { mergeReturns(retVal,node.getRight().apply(this)); } mergeReturns(retVal,outASetSubsetBinaryExpIR(node)); return retVal; }
/** * Called by the {@link ASetSubsetBinaryExpIR} node from {@link ASetSubsetBinaryExpIR#apply(IAnalysis)}. * @param node the calling {@link ASetSubsetBinaryExpIR} node */ public A caseASetSubsetBinaryExpIR(ASetSubsetBinaryExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inASetSubsetBinaryExpIR(node, question)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this, question)); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { mergeReturns(retVal,node.getLeft().apply(this, question)); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { mergeReturns(retVal,node.getRight().apply(this, question)); } mergeReturns(retVal,outASetSubsetBinaryExpIR(node, question)); return retVal; }