Class EnumSort<R>

All Implemented Interfaces:
Comparable<AST>

public class EnumSort<R> extends Sort
Enumeration sorts.
  • Method Details

    • getConstDecls

      public FuncDecl<EnumSort<R>>[] getConstDecls()
      The function declarations of the constants in the enumeration.
      Throws:
      Z3Exception - on error
    • getConstDecl

      public FuncDecl<EnumSort<R>> getConstDecl(int inx)
      Retrieves the inx'th constant declaration in the enumeration.
      Throws:
      Z3Exception - on error
    • getConsts

      public Expr<EnumSort<R>>[] getConsts()
      The constants in the enumeration.
      Returns:
      an Expr[]
      Throws:
      Z3Exception - on error
    • getConst

      public Expr<EnumSort<R>> getConst(int inx)
      Retrieves the inx'th constant in the enumeration.
      Returns:
      an Expr
      Throws:
      Z3Exception - on error
    • getTesterDecls

      public FuncDecl<BoolSort>[] getTesterDecls()
      The test predicates for the constants in the enumeration.
      Throws:
      Z3Exception - on error
    • getTesterDecl

      public FuncDecl<BoolSort> getTesterDecl(int inx)
      Retrieves the inx'th tester/recognizer declaration in the enumeration.
      Throws:
      Z3Exception - on error