Class ZeroCheckExpr
java.lang.Object
EDU.purdue.cs.bloat.tree.Node
EDU.purdue.cs.bloat.tree.Expr
EDU.purdue.cs.bloat.tree.CheckExpr
EDU.purdue.cs.bloat.tree.ZeroCheckExpr
- All Implemented Interfaces:
Cloneable
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).
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanequalsExpr(Expr other) Compares this expression to another.voidvisit(TreeVisitor visitor) Methods inherited from class CheckExpr
expr, exprHashCode, visitForceChildrenMethods inherited from class Expr
cleanupOnly, comparator, copyInto, def, isDef, setDef, setType, stmt, typeMethods inherited from class Node
block, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnly
-
Constructor Details
-
ZeroCheckExpr
-
-
Method Details
-
visit
-
equalsExpr
Description copied from class:ExprCompares this expression to another.- Overrides:
equalsExprin classCheckExpr- Parameters:
other- Expr to which to compare this.
-
clone
-