2007-02-02 17:17:13 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Copyright (c) 2002 - 2006 IBM Corporation.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* IBM Corporation - initial API and implementation
|
|
|
|
*****************************************************************************/
|
|
|
|
package com.ibm.wala.cast.ir.cfg;
|
|
|
|
|
2007-12-10 04:26:21 +00:00
|
|
|
import com.ibm.wala.cast.ir.ssa.*;
|
2007-07-06 22:09:29 +00:00
|
|
|
import com.ibm.wala.cfg.InducedCFG;
|
|
|
|
import com.ibm.wala.classLoader.IMethod;
|
|
|
|
import com.ibm.wala.ipa.callgraph.Context;
|
|
|
|
import com.ibm.wala.ssa.SSAInstruction;
|
2007-02-02 17:17:13 +00:00
|
|
|
|
|
|
|
public class AstInducedCFG extends InducedCFG {
|
|
|
|
|
|
|
|
public AstInducedCFG(SSAInstruction[] instructions, IMethod method, Context context) {
|
|
|
|
super(instructions, method, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected class AstPEIVisitor extends PEIVisitor implements AstInstructionVisitor {
|
|
|
|
|
|
|
|
protected AstPEIVisitor(boolean[] r) {
|
|
|
|
super(r);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstLexicalRead(AstLexicalRead inst) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstLexicalWrite(AstLexicalWrite inst) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstGlobalRead(AstGlobalRead instruction) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstGlobalWrite(AstGlobalWrite instruction) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitNonExceptingThrow(NonExceptingThrowInstruction inst) {
|
|
|
|
breakBasicBlock();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAssert(AstAssertInstruction instruction) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitEachElementHasNext(EachElementHasNextInstruction inst) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitEachElementGet(EachElementGetInstruction inst) {
|
|
|
|
|
|
|
|
}
|
2007-04-19 13:48:01 +00:00
|
|
|
|
|
|
|
public void visitIsDefined(AstIsDefinedInstruction inst) {
|
|
|
|
|
|
|
|
}
|
2007-12-10 04:26:21 +00:00
|
|
|
|
|
|
|
public void visitEcho(AstEchoInstruction inst) {
|
|
|
|
|
|
|
|
}
|
2007-02-02 17:17:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected class AstBranchVisitor extends BranchVisitor implements AstInstructionVisitor {
|
|
|
|
|
|
|
|
protected AstBranchVisitor(boolean[] r) {
|
|
|
|
super(r);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstLexicalRead(AstLexicalRead inst) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstLexicalWrite(AstLexicalWrite inst) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstGlobalRead(AstGlobalRead instruction) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAstGlobalWrite(AstGlobalWrite instruction) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitNonExceptingThrow(NonExceptingThrowInstruction inst) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitAssert(AstAssertInstruction instruction) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitEachElementHasNext(EachElementHasNextInstruction inst) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void visitEachElementGet(EachElementGetInstruction inst) {
|
|
|
|
}
|
|
|
|
|
2007-04-19 13:48:01 +00:00
|
|
|
public void visitIsDefined(AstIsDefinedInstruction inst) {
|
|
|
|
}
|
|
|
|
|
2007-12-10 04:26:21 +00:00
|
|
|
public void visitEcho(AstEchoInstruction inst) {
|
|
|
|
}
|
2007-02-02 17:17:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected BranchVisitor makeBranchVisitor(boolean[] r) {
|
|
|
|
return new AstBranchVisitor(r);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected PEIVisitor makePEIVisitor(boolean[] r) {
|
|
|
|
return new AstPEIVisitor(r);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|