@Override public PType caseASkipStm(ASkipStm node, TypeCheckInfo question) { node.setType(AstFactory.newAVoidType(node.getLocation())); return node.getType(); }
/** * Returns a deep clone of this {@link ASkipStm} node. * @return a deep clone of this {@link ASkipStm} node */ public ASkipStm clone() { return new ASkipStm( _location, _type ); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof ASkipStm) { return toString().equals(o.toString()); } return false; }
/** * Called by the {@link ASkipStm} node from {@link ASkipStm#apply(IAnalysis)}. * @param node the calling {@link ASkipStm} node */ public void caseASkipStm(ASkipStm node) throws AnalysisException { _visitedNodes.add(node); inASkipStm(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } outASkipStm(node); }
@Override public Value caseASkipStm(ASkipStm node, Context ctxt) throws AnalysisException { BreakpointManager.getBreakpoint(node).check(node.getLocation(), ctxt); return new VoidValue(); }
/** * Called by the {@link ASkipStm} node from {@link ASkipStm#apply(IAnalysis)}. * @param node the calling {@link ASkipStm} node */ public void caseASkipStm(ASkipStm node, Q question) throws AnalysisException { _visitedNodes.add(node); inASkipStm(node, question); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this, question); } outASkipStm(node, question); }
/** * Called by the {@link ASkipStm} node from {@link ASkipStm#apply(IPOFAnalysis)}. * @param node the calling {@link ASkipStm} node */ public void caseASkipStm(ASkipStm node) throws AnalysisException { _visitedNodes.add(node); inASkipStm(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } outASkipStm(node); }
/** * Creates a deep clone of this {@link ASkipStm} 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 ASkipStm} node */ public ASkipStm clone(Map<INode,INode> oldToNewMap) { ASkipStm node = new ASkipStm( _location, _type ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link ASkipStm} node from {@link ASkipStm#apply(IAnalysis)}. * @param node the calling {@link ASkipStm} node */ public A caseASkipStm(ASkipStm node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inASkipStm(node)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this)); } mergeReturns(retVal,outASkipStm(node)); return retVal; }
public static ASkipStm newASkipStm(ILexLocation location) { ASkipStm result = new ASkipStm(); initStatement(result, location); return result; }
/** * Called by the {@link ASkipStm} node from {@link ASkipStm#apply(IAnalysis)}. * @param node the calling {@link ASkipStm} node */ public A caseASkipStm(ASkipStm node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inASkipStm(node, question)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this, question)); } mergeReturns(retVal,outASkipStm(node, question)); return retVal; }
public WhileLoopObligation(AWhileStm stmt, IPOContextStack ctxt, IPogAssistantFactory af) throws AnalysisException { super(stmt, POType.WHILE_LOOP, ctxt, stmt.getLocation(), af); AWhileStm whileStmt = new AWhileStm(); whileStmt.setExp(stmt.getExp().clone()); whileStmt.setStatement(new ASkipStm()); AVariableExp nyexp = getVarExp(new LexNameToken("", "...", null)); valuetree.setPredicate(nyexp); // valuetree.setPredicate(whileStmt); // valuetree.setContext(ctxt.getContextNodeList()); } }