joeq.Compiler.Quad
Class Dominators
java.lang.Object
joeq.Class.jq_MethodVisitor.EmptyVisitor
joeq.Compiler.Quad.Dominators
- All Implemented Interfaces:
- jq_MethodVisitor, BasicBlockVisitor
public class Dominators
- extends jq_MethodVisitor.EmptyVisitor
- implements BasicBlockVisitor
- Version:
- $Id: Dominators.java 2465 2006-06-07 23:03:17Z joewhaley $
- Author:
- John Whaley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRACE
public static final boolean TRACE
- See Also:
- Constant Field Values
direction
public final boolean direction
dominators
public jwutil.math.BitString[] dominators
change
protected boolean change
cfg
protected ControlFlowGraph cfg
bbs
protected BasicBlock[] bbs
dom_nav
public static final jwutil.graphs.Navigator dom_nav
Dominators
public Dominators(boolean direction)
- true = normal dominators.
false = post dominators.
Dominators
public Dominators()
visitMethod
public void visitMethod(jq_Method m)
- Specified by:
visitMethod
in interface jq_MethodVisitor
- Overrides:
visitMethod
in class jq_MethodVisitor.EmptyVisitor
visitBasicBlock
public void visitBasicBlock(BasicBlock bb)
- Description copied from interface:
BasicBlockVisitor
- Visit a basic block.
- Specified by:
visitBasicBlock
in interface BasicBlockVisitor
- Parameters:
bb
- basic block to visit
getDominatorNode
public Dominators.DominatorNode getDominatorNode(BasicBlock bb)
getImmediateDominator
public BasicBlock getImmediateDominator(BasicBlock bb)
computeTree
public Dominators.DominatorNode computeTree()
calculateDominanceFrontier
public void calculateDominanceFrontier(Dominators.DominatorNode tree)
dominates
public boolean dominates(int b,
jwutil.math.BitString b2)
getDominanceFrontier
public jwutil.math.BitString getDominanceFrontier(jwutil.math.BitString bits)
getIteratedDominanceFrontier
public jwutil.math.BitString getIteratedDominanceFrontier(jwutil.math.BitString S)
main
public static void main(String[] args)
Copyright © 2001-2008 John Whaley. All Rights Reserved.