PHP Class PHPCfg\Visitor\Simplifier

Inheritance: implements PHPCfg\Visitor
Mostrar archivo Open project: ircmaxell/php-cfg

Protected Properties

Property Type Description
$recursionProtection SplObjectStorage
$removed SplObjectStorage
$trivialPhiCandidates SplObjectStorage

Public Methods

Method Description
enterFunc ( Func $func )
enterOp ( Op $op, Block $block )
leaveFunc ( Func $func )

Private Methods

Method Description
removeTrivialPhi ( Block $block )
replaceOpVariable ( Operand $from, Operand $to, Op $op )
replaceVariables ( Operand $from, Operand $to, Block $block )
tryRemoveTrivialPhi ( Phi $phi, Block $block )

Method Details

enterFunc() public method

public enterFunc ( Func $func )
$func PHPCfg\Func

enterOp() public method

public enterOp ( Op $op, Block $block )
$op PHPCfg\Op
$block PHPCfg\Block

leaveFunc() public method

public leaveFunc ( Func $func )
$func PHPCfg\Func

Property Details

$recursionProtection protected_oe property

protected SplObjectStorage $recursionProtection
return SplObjectStorage

$removed protected_oe property

protected SplObjectStorage $removed
return SplObjectStorage

$trivialPhiCandidates protected_oe property

protected SplObjectStorage $trivialPhiCandidates
return SplObjectStorage