public class FinishSymbolicExecutionUntilMergePointMacro extends StrategyProofMacro
MergeRule
can
be applied) or there is no more modality on the sequent.
This is done by implementing a delegation Strategy
which assigns to
any rule application infinite costs if there is no modality on the sequent.
FinishSymbolicExecutionMacro
ProofMacro.ProgressBarListener
Constructor and Description |
---|
FinishSymbolicExecutionUntilMergePointMacro() |
FinishSymbolicExecutionUntilMergePointMacro(java.util.HashSet<ProgramElement> blockElems) |
Modifier and Type | Method and Description |
---|---|
ProofMacroFinishedInfo |
applyTo(UserInterfaceControl uic,
Proof proof,
ImmutableList<Goal> goals,
PosInOccurrence posInOcc,
ProverTaskListener listener)
Apply this macro on the given goals.
|
protected Strategy |
createStrategy(Proof proof,
PosInOccurrence posInOcc) |
protected void |
doPostProcessing(Proof proof)
Subclasses can use this method to do some postprocessing on the
proof-object after the strategy has finished.
|
java.lang.String |
getCategory()
Gets the category of this macro.
|
java.lang.String |
getDescription()
Gets the description of this macro.
|
java.lang.String |
getName()
Gets the name of this macro.
|
canApplyTo
applyTo, canApplyTo, getMaxSteps, getScriptCommandName, hasParameter, resetParams, setParameter
public FinishSymbolicExecutionUntilMergePointMacro()
public FinishSymbolicExecutionUntilMergePointMacro(java.util.HashSet<ProgramElement> blockElems)
public java.lang.String getName()
ProofMacro
null
constant stringpublic java.lang.String getCategory()
ProofMacro
null
if no submenu is to be created.null
public java.lang.String getDescription()
ProofMacro
null
constant stringpublic ProofMacroFinishedInfo applyTo(UserInterfaceControl uic, Proof proof, ImmutableList<Goal> goals, PosInOccurrence posInOcc, ProverTaskListener listener) throws java.lang.InterruptedException
ProofMacro
InterruptedException
.
A ProverTaskListener
can be provided to which the progress will
be reported. If no reports are desired, null
cna be used for
this parameter. If more than one listener is needed, consider combining
them using a single listener object using the composite pattern.applyTo
in interface ProofMacro
applyTo
in class StrategyProofMacro
uic
- the UserInterfaceControl
to useproof
- the current Proof
(not null
)goals
- the goals (not null
)posInOcc
- the position in occurrence (may be null
)listener
- the listener to use for progress reports (may be
null
)java.lang.InterruptedException
- if the application of the macro has been interrupted.protected Strategy createStrategy(Proof proof, PosInOccurrence posInOcc)
createStrategy
in class StrategyProofMacro
protected void doPostProcessing(Proof proof)
StrategyProofMacro
doPostProcessing
in class StrategyProofMacro
proof
- The proof object.Copyright © 2003-2019 The KeY-Project.