public class WellDefinednessMacro extends StrategyProofMacro
WD_PREFIX.
The macro is only applicable for proof obligations created in #WellDefinednessPO
and the Well-Definedness branches in #WhileInvariantRule and #BlockContractRule.| Modifier and Type | Class and Description |
|---|---|
private static class |
WellDefinednessMacro.WellDefinednessStrategy
This strategy accepts all rule apps for which the rule name is a
Well-Definedness rule and rejects everything else.
|
ProofMacro.ProgressBarListener| Modifier and Type | Field and Description |
|---|---|
static String |
WD_BRANCH |
static String |
WD_PREFIX |
| Constructor and Description |
|---|
WellDefinednessMacro() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canApplyTo(Proof proof,
ImmutableList<Goal> goals,
PosInOccurrence posInOcc)
Can this macro be applied on the given goals?
This method should not make any changes but check if the macro can be
applied or not on the given goals.
|
protected Strategy |
createStrategy(Proof proof,
PosInOccurrence posInOcc) |
String |
getCategory()
Gets the category of this macro.
|
String |
getDescription()
Gets the description of this macro.
|
String |
getName()
Gets the name of this macro.
|
applyTo, doPostProcessingapplyTo, canApplyTo, getMaxSteps, getScriptCommandNamepublic static final String WD_PREFIX
public static final String WD_BRANCH
public String getName()
ProofMacronull constant stringpublic String getCategory()
ProofMacronull if no submenu is to be created.nullpublic String getDescription()
ProofMacronull constant stringprotected Strategy createStrategy(Proof proof, PosInOccurrence posInOcc)
createStrategy in class StrategyProofMacropublic boolean canApplyTo(Proof proof, ImmutableList<Goal> goals, PosInOccurrence posInOcc)
StrategyProofMacrocanApplyTo in interface ProofMacrocanApplyTo in class StrategyProofMacroproof - the current Proof (not null)goals - the goals (not null)posInOcc - the position in occurrence (may be null)true, if the macro is allowed to be applied