Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.core.isdl
Class Optimizer

    java.lang.Object
      avrora.core.isdl.Optimizer

public class Optimizer
extends java.lang.Object

The `Optimizer` class takes the description of an instruction's code and optimizes it by performing constant and copy propagation as well as dead code elimination.

Field Summary
`protected java.util.HashMap` | `constMap`
`protected java.util.List` | `original`

Constructor Summary
`Optimizer(java.util.List stmts)`
`Optimizer(java.util.List stmts, java.util.HashMap cMap)`

Method Summary
`java.util.List` | `optimize()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### constMap

    protected final java.util.HashMap constMap

### original

    protected final java.util.List original

Constructor Detail

### Optimizer

    public Optimizer(java.util.List stmts)

### Optimizer

    public Optimizer(java.util.List stmts,
                     java.util.HashMap cMap)

Method Detail

### optimize

    public java.util.List optimize()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD