Class IfStatementBlock

All Implemented Interfaces:
ParseInfo

public class IfStatementBlock extends StatementBlock
  • Constructor Details

    • IfStatementBlock

      public IfStatementBlock()
  • Method Details

    • validate

      public VariableSet validate(DMLProgram dmlProg, VariableSet ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)
      Overrides:
      validate in class StatementBlock
    • initializeforwardLV

      public VariableSet initializeforwardLV(VariableSet activeInPassed)
      Description copied from class: StatementBlock
      For each statement: gen rule: for each variable read in current statement but not updated in any PRIOR statement, add to gen Handles case where variable both read and updated in same statement (i = i + 1, i needs to be added to gen) kill rule: for each variable updated in current statement but not read in this or any PRIOR statement, add to kill.
      Overrides:
      initializeforwardLV in class StatementBlock
    • initializebackwardLV

      public VariableSet initializebackwardLV(VariableSet loPassed)
      Overrides:
      initializebackwardLV in class StatementBlock
    • setPredicateHops

      public void setPredicateHops(Hop hops)
    • getPredicateHops

      public Hop getPredicateHops()
    • getPredicateLops

      public Lop getPredicateLops()
    • setPredicateLops

      public void setPredicateLops(Lop predicateLops)
    • analyze

      public VariableSet analyze(VariableSet loPassed)
      Overrides:
      analyze in class StatementBlock
    • updatePredicateRecompilationFlag

      public boolean updatePredicateRecompilationFlag()
    • requiresPredicateRecompilation

      public boolean requiresPredicateRecompilation()