harpoon.Analysis.Quads
Class Unreachable

java.lang.Object
  extended by harpoon.Analysis.Quads.Unreachable

public abstract class Unreachable
extends Object

Unreachable gets rid of unreachable code. CAUTION: it modifies code in-place.

Version:
$Id: Unreachable.java,v 1.6 2004/02/08 01:53:14 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
Unreachable()
           
 
Method Summary
static void prune(Code hc)
          Prunes unreachable code from a quad graph in-place.
static void prune(HEADER header)
          Prunes unreachable code *without updating the derivation*.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unreachable

public Unreachable()
Method Detail

prune

public static final void prune(Code hc)
Prunes unreachable code from a quad graph in-place. Also updates the derivation for the HCode, if present.


prune

public static final void prune(HEADER header)
Prunes unreachable code *without updating the derivation*.