Class Quantifier

  • All Implemented Interfaces:
    Comparable<AST>

    public class Quantifier
    extends BoolExpr
    Quantifier expressions.
    • Method Detail

      • 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.
      • getNumNoPatterns

        public int getNumNoPatterns()
        The number of no-patterns.
      • 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 Expr 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
        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 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 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.