Skip to content

Commit e2eedcd

Browse files
implement 'apply single rule'
1 parent de62687 commit e2eedcd

2 files changed

Lines changed: 342 additions & 24 deletions

File tree

‎key.core/src/main/java/de/uka/ilkd/key/proof/io/IntermediateProofReplayer.java‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public Result replay(ProblemInitializer.ProblemInitializerListener listener,
249249
.getIntermediateRuleApp() instanceof TacletAppIntermediate appInterm) {
250250

251251
try {
252-
currGoal.apply(constructTacletApp(appInterm, currGoal));
252+
currGoal.apply(constructTacletApp(proof, appInterm, currGoal));
253253

254254
final Iterator<Node> children = currNode.childrenIterator();
255255
final LinkedList<NodeIntermediate> intermChildren =
@@ -439,12 +439,13 @@ public Collection<Throwable> getErrors() {
439439
/**
440440
* Constructs a taclet application from an intermediate one.
441441
*
442+
* @param proof the current proof to operate on
442443
* @param currInterm The intermediate taclet application to create a "real" application for.
443-
* @param currGoal The goal on which to apply the taclet app.
444+
* @param currGoal The goal on which to apply the taclet app.
444445
* @return The taclet application corresponding to the supplied intermediate representation.
445446
* @throws TacletAppConstructionException In case of an error during construction.
446447
*/
447-
private TacletApp constructTacletApp(TacletAppIntermediate currInterm, Goal currGoal)
448+
public static TacletApp constructTacletApp(Proof proof, TacletAppIntermediate currInterm, Goal currGoal)
448449
throws TacletAppConstructionException {
449450

450451
final String tacletName = currInterm.getRuleName();

0 commit comments

Comments
 (0)