Class ZeroCheckExpr

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ZeroCheckExpr
    extends CheckExpr
    ZeroCheckExpr represents a check for a zero value. For instance, when a division operation is performed. a ZeroCheckExpr is inserted to ensure that the divisor is not zero. It is used when division is performed (idiv, ldiv) a remainder is taken (irem, lrem), or a field is accessed (getfield, putfield
    • Constructor Detail

      • ZeroCheckExpr

        public ZeroCheckExpr​(Expr expr,
                             Type type)
        Constructor.
        Parameters:
        expr - The expression to check for a zero value.
        type - The type of this expression.
    • Method Detail

      • equalsExpr

        public boolean equalsExpr​(Expr other)
        Description copied from class: Expr
        Compares this expression to another.
        Overrides:
        equalsExpr in class CheckExpr
        Parameters:
        other - Expr to which to compare this.
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in class Expr