|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectforge.cfg.ForgeCFG
public abstract class ForgeCFG
The CFG of a procedure.
Nested Class Summary | |
---|---|
static class |
ForgeCFG.Impl
An implementation CFG with several statements. |
static class |
ForgeCFG.Spec
A specification CFG containing only a single specification statement. |
Method Summary | |
---|---|
void |
checkCFG(CFGElement element)
|
abstract CFGStmt |
entry()
Returns the entry stmt of the cfg. |
ExitStmt |
exit()
Returns the exit stmt of the cfg. |
static ForgeCFG.Spec |
generalSpecification(ForgeProcedure proc,
java.util.Set<? extends ForgeVariable> mods,
ForgeExpression condition)
Returns a new unmodifiable CFG that who entry is a specification stmt with the given set of modifiables. |
static ForgeCFG.Impl |
implementation(ForgeProcedure proc)
Returns a new modifiable CFG that who entry is the exit stmt. |
ForgeProcedure |
procedure()
|
ForgeProgram |
program()
Returns the program to which this element belongs. |
static ForgeCFG.Spec |
specification(ForgeProcedure proc,
java.util.Set<GlobalVariable> globals,
ForgeExpression condition)
Returns a new unmodifiable CFG that who entry is a specification stmt that modifies the union of the given globals and output parameters and with the given condition. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ForgeCFG.Impl implementation(ForgeProcedure proc)
public static ForgeCFG.Spec specification(ForgeProcedure proc, java.util.Set<GlobalVariable> globals, ForgeExpression condition)
public static ForgeCFG.Spec generalSpecification(ForgeProcedure proc, java.util.Set<? extends ForgeVariable> mods, ForgeExpression condition)
public final ForgeProcedure procedure()
public final ForgeProgram program()
ProgramElement
program
in interface ProgramElement
public abstract CFGStmt entry()
public final ExitStmt exit()
public void checkCFG(CFGElement element)
java.lang.IllegalArgumentException
- - if elem does not belong to this cfg
java.lang.NullPointerException
- - if the given elem is nullpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |