# Class: com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.opt.CMasterOptimizer

Master optimizer for the C AST generated code. 

 Information about how groups of optimizers are scheduled for execution can be found in the [IMasterOptimizer](IMasterOptimizer) javadoc.

## Constructor: CMasterOptimizer
- parameter: `m`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod`

Description: Create a standard AST master optimizer with no maximum runcount \(unsafe\).
parameter: m: optional default method; the target method may be set after construction using            [#setTarget(ICRoutineContext)](#setTarget(ICRoutineContext))

## Constructor: CMasterOptimizer
- parameter: `m`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod`
- parameter: `grp1NMaxRunCount`, type: `int`

Description: Create a standard AST master optimizer.
parameter: m: optional default method; the target method may be set after construction using            [#setTarget(ICRoutineContext)](#setTarget(ICRoutineContext))
parameter: grp1NMaxRunCount: maximum run count for the group \[1..N\]

## Static Field: EMPTY
Type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.opt.CMasterOptimizer`

## Static Field: defaultMaxRunCount
Type: `int`
Description: no max

## Protected Method: getTargetAddress
- parameter: `target`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod`
- return type: `java.lang.String`


## Protected Method: onOptimizerException
- parameter: `target`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod`
- parameter: `opt`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IOptimizer<com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod>`
- parameter: `ex`, type: `java.lang.Exception`
- return type: `boolean`


## Protected Method: postAllOptimizationsCallback
- parameter: `m`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod`


## Protected Method: postOptimizationCallback
- parameter: `m`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod`
- parameter: `e`, type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.OptimizerEntry<com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICMethod>`
- parameter: `cnt`, type: `int`
- parameter: `executionTimeMs`, type: `long`


