|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.pog.lemma.Goal
This class implements a goal.
Field Summary |
Fields inherited from interface jml2b.structure.statement.MyToken |
BTRUE, FIRST_TOKEN, METHOD_CALL, NEWARRAY, nodeString, SEQUENCE, SKIP, T_CALLED_OLD, T_FRESH_CALLED_OLD, T_VARIANT_OLD |
Constructor Summary | |
Goal(Formula f,
GoalOrigin origin)
Constructs a goal from a formula and an origin. |
|
Goal(VirtualFormula vf,
GoalOrigin origin)
Constructs a goal from a formula and an origin. |
Method Summary | |
void |
addImplicToGoal(Formula f,
byte origin)
Transforms the goal into an implication formula |
java.lang.Object |
clone()
Clones the goal |
void |
garbageIdent()
Annotates all the fields that appear in the lemma to declare them in the Atelier B files. |
void |
getFields(java.util.Set fields)
|
Formula |
getFormula()
Returns the goal |
java.util.Vector |
getSubs()
Returns the set of substitutions. |
boolean |
isOriginal()
Returns the isOriginal. |
void |
oldParam(java.util.Vector e)
Adds a old param around the element of the enumeration corresponding to the parameter of the method. |
boolean |
proveObvious(java.util.Vector hyp,
boolean atTheEnd)
A goal is obvious if the formula is obvious, if the formula appears in the hypothesis or if the goal comes from an invariant and it has not been modified during the complete generation. |
void |
setObvious(boolean b)
|
void |
sub(Substitution s)
Apply a substitution to the lemma. |
void |
suppressSpecialOld(int token)
Suppress the Called Old expressions. |
Methods inherited from class jml2b.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Goal(VirtualFormula vf, GoalOrigin origin)
vf
- The formula corresponding to this goal.origin
- The origin of this goalpublic Goal(Formula f, GoalOrigin origin)
f
- The formula corresponding to this goal.origin
- The origin of this goalMethod Detail |
public java.lang.Object clone()
public final void addImplicToGoal(Formula f, byte origin)
f
- The implication antecedentorigin
- The origin of f
public final void oldParam(java.util.Vector e)
ILemma
oldParam
in interface ILemma
e
- fields enumerationTheorem#oldParam(Enumeration)
public final void sub(Substitution s)
ILemma
sub
in interface ILemma
s
- substitution to apply.Proofs.sub(Substitution)
public final void suppressSpecialOld(int token)
ILemma
suppressSpecialOld
in interface ILemma
Theorem#suppressCalledOld()
public final void garbageIdent()
ILemma
garbageIdent
in interface ILemma
Theorem#garbageIdent()
public final boolean proveObvious(java.util.Vector hyp, boolean atTheEnd)
proveObvious
in interface ILemma
true
if the goal is obvious, false
otherwiseProofs.proveObvious(boolean, boolean)
public void getFields(java.util.Set fields)
public Formula getFormula()
public final java.util.Vector getSubs()
subs
public boolean isOriginal()
public void setObvious(boolean b)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |