Class Quantifier

All Implemented Interfaces:
Comparable<AST>

public class Quantifier extends BoolExpr
Quantifier expressions.
  • Method Details

    • isUniversal

      public boolean isUniversal()
      Indicates whether the quantifier is universal.
    • isExistential

      public boolean isExistential()
      Indicates whether the quantifier is existential.
    • getWeight

      public int getWeight()
      The weight of the quantifier.
    • getNumPatterns

      public int getNumPatterns()
      The number of patterns.
    • getPatterns

      public Pattern[] getPatterns()
      The patterns.
      Throws:
      Z3Exception
    • getNumNoPatterns

      public int getNumNoPatterns()
      The number of no-patterns.
    • getNoPatterns

      public Pattern[] getNoPatterns()
      The no-patterns.
      Throws:
      Z3Exception
    • getNumBound

      public int getNumBound()
      The number of bound variables.
    • getBoundVariableNames

      public Symbol[] getBoundVariableNames()
      The symbols for the bound variables.
      Throws:
      Z3Exception
    • getBoundVariableSorts

      public Sort[] getBoundVariableSorts()
      The sorts of the bound variables.
      Throws:
      Z3Exception
    • getBody

      public BoolExpr getBody()
      The body of the quantifier.
      Throws:
      Z3Exception
    • translate

      public Quantifier translate(Context ctx)
      Translates (copies) the quantifier to the Context ctx.
      Overrides:
      translate in class Expr<BoolSort>
      Parameters:
      ctx - A context
      Returns:
      A copy of the quantifier which is associated with ctx
      Throws:
      Z3Exception - on error
    • of

      public static Quantifier of(Context ctx, boolean isForall, Sort[] sorts, Symbol[] names, Expr<BoolSort> body, int weight, Pattern[] patterns, Expr<?>[] noPatterns, Symbol quantifierID, Symbol skolemID)
      Create a quantified expression.
      Parameters:
      patterns - Nullable patterns
      noPatterns - Nullable noPatterns
      quantifierID - Nullable quantifierID
      skolemID - Nullable skolemID
    • of

      public static Quantifier of(Context ctx, boolean isForall, Expr<?>[] bound, Expr<BoolSort> body, int weight, Pattern[] patterns, Expr<?>[] noPatterns, Symbol quantifierID, Symbol skolemID)
      Parameters:
      ctx - Context to create the quantifier on.
      isForall - Quantifier type.
      bound - Bound variables.
      body - Body of the quantifier.
      weight - Weight.
      patterns - Nullable array of patterns.
      noPatterns - Nullable array of noPatterns.
      quantifierID - Nullable quantifier identifier.
      skolemID - Nullable skolem identifier.