public class FlatForall extends FlatPred
Modifier and Type | Field and Description |
---|---|
protected FlatPredList |
body_ |
protected Bounds |
bodyBounds_ |
protected Mode |
bodyMode_
The mode returned by body_
|
protected static Logger |
LOG |
protected Bounds |
schBounds_ |
protected Mode |
schMode_
The mode returned by schText_
|
protected FlatPredList |
schText_ |
Constructor and Description |
---|
FlatForall(FlatPredList sch,
FlatPredList body) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(net.sourceforge.czt.util.Visitor<R> visitor)
Calls visitor.visitPred (preferably) or visitor.visitTerm.
|
ModeList |
chooseMode(Envir env)
Chooses the mode in which the predicate can be evaluated.
|
Set<net.sourceforge.czt.z.ast.ZName> |
freeVars()
Returns the free variables that appear in the predicate.
|
boolean |
inferBounds(Bounds bnds)
This lets bound information flow into the
quantifier, but not out.
|
boolean |
nextEvaluation()
Generates the next solution that satisfies this predicate.
|
void |
setMode(Mode mode)
Set the mode that will be used to evaluate this predicate.
|
String |
toString()
A default implementation of toString.
|
getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, startEvaluation
protected static final Logger LOG
protected FlatPredList schText_
protected FlatPredList body_
protected Bounds schBounds_
protected Bounds bodyBounds_
protected Mode schMode_
protected Mode bodyMode_
public FlatForall(FlatPredList sch, FlatPredList body)
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 ModeList chooseMode(Envir env)
chooseMode
in class FlatPred
public Set<net.sourceforge.czt.z.ast.ZName> freeVars()
FlatPred
public void setMode(Mode mode)
FlatPred
public boolean nextEvaluation()
FlatPred
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.