|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.pog.lemma.Lemma
jml2b.pog.lemma.BehaviourLemma
jml2b.pog.lemma.NormalLemma
This class defines lemmas resulting from the proof of a normal method
specification.
ensuresLemmas
is a set of EnsuresLabelledLemma
Field Summary |
Constructor Summary | |
NormalLemma(IJml2bConfiguration config,
Method m,
SimpleLemma l,
SimpleLemma sc,
SimpleLemma ic,
java.util.Vector fields)
Creates a set of ensures labelled lemma corresponding to the cases of a method specification corresponding to normal behaviours. |
Method Summary | |
Lemma |
catchException(Type type,
Field catchParam)
Creates an exceptional lemma set from the current one and a catched type with a catched parameter. |
java.lang.Object |
clone()
Clones a lemma. |
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)
|
void |
oldParam(java.util.Vector enum)
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)
Supress in the lemma the obvious goals. |
void |
selectLabel(java.util.Vector labels)
Selects in the labelled lemmas, the cases corresponding to labels. |
void |
sub(Substitution s)
Apply a substitution to the lemma. |
void |
suppressSpecialOld(int token)
Suppress the Called Old expressions. |
Methods inherited from class jml2b.pog.lemma.Lemma |
catches, getTypesException, nbPo, nbPoChecked, nbPoProved, nbPoProved, throwException, throwException |
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 NormalLemma(IJml2bConfiguration config, Method m, SimpleLemma l, SimpleLemma sc, SimpleLemma ic, java.util.Vector fields) throws Jml2bException, PogException
m
- The analyzed methodl
- The current invariantfields
- The set of modifiable fieldsMethod Detail |
public java.lang.Object clone()
Lemma
clone
in class Lemma
public Lemma catchException(Type type, Field catchParam)
catchException
in class Lemma
type
- The catched typecatchParam
- The catched parameter
ExceptionalLemma
that corresponds to the current lemma
encapsulated in a catched exception.public void getFields(java.util.Set fields)
getFields
in class Lemma
public final boolean proveObvious(java.util.Vector hyp, boolean atTheEnd)
ILemma
true
if the lemma contains only obvious goals,
false
otherwise.Proofs.proveObvious(boolean, boolean)
public final void garbageIdent()
ILemma
Theorem#garbageIdent()
public final void oldParam(java.util.Vector enum)
ILemma
enum
- fields enumerationTheorem#oldParam(Enumeration)
public final void sub(Substitution s)
ILemma
s
- substitution to apply.Proofs.sub(Substitution)
public final void suppressSpecialOld(int token)
ILemma
Theorem#suppressCalledOld()
public final void selectLabel(java.util.Vector labels) throws WrongLabelException
Lemma
selectLabel
in class Lemma
labels
- set of labels that have to be selected
WrongLabelException
- if a behaviour lemma does not contain any
remaining case after the selection.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |