33 * SPDX-License-Identifier: GPL-2.0-only */
44package de .uka .ilkd .key .macros ;
55
6+ import java .util .List ;
7+ import java .util .stream .Collectors ;
8+
69import de .uka .ilkd .key .control .UserInterfaceControl ;
710import de .uka .ilkd .key .logic .PosInOccurrence ;
811import de .uka .ilkd .key .proof .Goal ;
12+ import de .uka .ilkd .key .proof .Node ;
913import de .uka .ilkd .key .proof .Proof ;
1014import de .uka .ilkd .key .prover .GoalChooser ;
1115import de .uka .ilkd .key .prover .ProverCore ;
@@ -72,6 +76,7 @@ public ProofMacroFinishedInfo applyTo(UserInterfaceControl uic, Proof proof,
7276 // false
7377 return null ;
7478 }
79+ List <Node > nodes = goals .stream ().map (Goal ::node ).collect (Collectors .toList ());
7580
7681 final GoalChooser goalChooser =
7782 proof .getInitConfig ().getProfile ().getSelectedGoalChooserBuilder ().create ();
@@ -84,9 +89,9 @@ public ProofMacroFinishedInfo applyTo(UserInterfaceControl uic, Proof proof,
8489 new ProgressBarListener (goals .size (), getMaxSteps (proof ), listener );
8590 applyStrategy .addProverTaskObserver (pml );
8691 // add a focus manager if there is a focus
87- if (posInOcc != null && goals != null ) {
88- AutomatedRuleApplicationManager realManager = null ;
89- FocussedRuleApplicationManager manager = null ;
92+ if (posInOcc != null ) {
93+ AutomatedRuleApplicationManager realManager ;
94+ FocussedRuleApplicationManager manager ;
9095 for (Goal goal : goals ) {
9196 realManager = goal .getRuleAppManager ();
9297 realManager .clearCache ();
@@ -99,7 +104,7 @@ public ProofMacroFinishedInfo applyTo(UserInterfaceControl uic, Proof proof,
99104 Strategy oldStrategy = proof .getActiveStrategy ();
100105 proof .setActiveStrategy (createStrategy (proof , posInOcc ));
101106
102- ProofMacroFinishedInfo info = new ProofMacroFinishedInfo ( this , goals , proof , false ) ;
107+ ProofMacroFinishedInfo info ;
103108 try {
104109 // find the relevant goals
105110 // and start
@@ -125,7 +130,8 @@ public ProofMacroFinishedInfo applyTo(UserInterfaceControl uic, Proof proof,
125130 }
126131 final ImmutableList <Goal > resultingGoals =
127132 setDifference (proof .openGoals (), ignoredOpenGoals );
128- info = new ProofMacroFinishedInfo (this , resultingGoals );
133+ info = new ProofMacroFinishedInfo (this , resultingGoals ,
134+ nodes );
129135 proof .setActiveStrategy (oldStrategy );
130136 doPostProcessing (proof );
131137 applyStrategy .removeProverTaskObserver (pml );
0 commit comments