java.lang.Object
software.amazon.smithy.rulesengine.logic.bdd.BddCompiler

public final class BddCompiler extends Object
BDD compiler that builds a BDD from a CFG.
  • Constructor Details

    • BddCompiler

      public BddCompiler(Cfg cfg)
      Parameters:
      cfg - CFG to convert to a BDD.
  • Method Details

    • compile

      public Bdd compile()
      Compile the CFG into a BDD.
      Returns:
      the compiled BDD.
    • getIndexedResults

      public List<Rule> getIndexedResults()
      The ordered result rules after BDD compilation.
      Returns:
      ordered BDD result rules.
    • getOrderedConditions

      public List<Condition> getOrderedConditions()
      Get the ordered conditions referenced in the compiled BDD.
      Returns:
      the ordered BDD conditions.