Class ZeroCheckExpr

All Implemented Interfaces:
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, putfieldinvalid input: '<'/i).
  • Constructor Details

    • 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 Details

    • visit

      public void visit(TreeVisitor visitor)
      Specified by:
      visit in class Node
    • 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 Object clone()
      Specified by:
      clone in class Expr