public class FlatEquals extends FlatPred
Constructor and Description |
---|
FlatEquals(net.sourceforge.czt.z.ast.ZName a,
net.sourceforge.czt.z.ast.ZName b) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(net.sourceforge.czt.util.Visitor<R> visitor)
Calls visitor.visitPred (preferably) or visitor.visitTerm.
|
Mode |
chooseMode(Envir env)
Chooses the mode in which the predicate can be evaluated.
|
protected net.sourceforge.czt.z.ast.Expr |
findSetInfo(net.sourceforge.czt.z.ast.ZName name,
Envir env)
Tries to find approximate information about the given name.
|
boolean |
inferBounds(Bounds bnds)
Copies integer bounds from each arg to the other.
|
boolean |
nextEvaluation()
Does the actual evaluation
|
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, setMode, startEvaluation
public FlatEquals(net.sourceforge.czt.z.ast.ZName a, net.sourceforge.czt.z.ast.ZName b)
public boolean inferBounds(Bounds bnds)
inferBounds
in class FlatPred
bnds
- The database of lower and upper bounds for integer variables.The default implementation infers nothing and returns false.
public Mode chooseMode(Envir env)
chooseMode
in class FlatPred
protected net.sourceforge.czt.z.ast.Expr findSetInfo(net.sourceforge.czt.z.ast.ZName name, Envir env)
public boolean nextEvaluation()
nextEvaluation
in class FlatPred
public String toString()
FlatPred
public <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
FlatPred
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.