public class FlatMu extends FlatPred
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
protected net.sourceforge.czt.z.ast.ZName |
resultName_ |
protected Bounds |
schBounds_ |
protected FlatPredList |
schText_ |
Constructor and Description |
---|
FlatMu(FlatPredList sch,
net.sourceforge.czt.z.ast.ZName result) |
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 env0)
Allows functional modes (IIO and III).
|
boolean |
inferBounds(Bounds bnds)
This does local bounds inference.
|
boolean |
nextEvaluation()
Iterates through all solutions to the schema text
and the expression, checks that they are all equal,
then returns that value.
|
void |
setMode(Mode mode)
Set the mode that will be used to evaluate this predicate.
|
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, startEvaluation
protected static final Logger LOG
protected FlatPredList schText_
protected Bounds schBounds_
protected net.sourceforge.czt.z.ast.ZName resultName_
public FlatMu(FlatPredList sch, net.sourceforge.czt.z.ast.ZName result)
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 env0)
chooseMode
in class FlatPred
public void setMode(Mode mode)
FlatPred
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.