3232import de .uka .ilkd .key .symbolic_execution .util .SymbolicExecutionSideProofUtil ;
3333import de .uka .ilkd .key .symbolic_execution .util .SymbolicExecutionUtil ;
3434
35+ import org .key_project .logic .SyntaxElement ;
3536import org .key_project .util .collection .ImmutableList ;
3637import org .key_project .util .collection .ImmutableSLList ;
3738
@@ -76,7 +77,7 @@ public abstract class AbstractConditionalBreakpoint extends AbstractHitCountBrea
7677 * A {@link Map} mapping from relevant variables for the condition to their runtime equivalent
7778 * in KeY
7879 */
79- private Map <SVSubstitute , SVSubstitute > variableNamingMap ;
80+ private Map <SyntaxElement , SyntaxElement > variableNamingMap ;
8081
8182 /**
8283 * The list of parameter variables of the method that contains the associated breakpoint
@@ -162,14 +163,14 @@ private void putValuesFromGlobalVars(ProgramVariable varForCondition, Node node,
162163 *
163164 * @return the cloned map
164165 */
165- private Map <SVSubstitute , SVSubstitute > getOldMap () {
166- Map <SVSubstitute , SVSubstitute > oldMap = new HashMap <>();
167- for (Entry <SVSubstitute , SVSubstitute > svSubstituteSVSubstituteEntry : getVariableNamingMap ()
166+ private Map <SyntaxElement , SyntaxElement > getOldMap () {
167+ Map <SyntaxElement , SyntaxElement > oldMap = new HashMap <>();
168+ for (Entry <SyntaxElement , SyntaxElement > svSubstituteSVSubstituteEntry : getVariableNamingMap ()
168169 .entrySet ()) {
169170 Entry <?, ?> oldEntry = svSubstituteSVSubstituteEntry ;
170- if (oldEntry .getKey () instanceof SVSubstitute
171- && oldEntry .getValue () instanceof SVSubstitute ) {
172- oldMap .put ((SVSubstitute ) oldEntry .getKey (), (SVSubstitute ) oldEntry .getValue ());
171+ if (oldEntry .getKey () instanceof SyntaxElement
172+ && oldEntry .getValue () instanceof SyntaxElement ) {
173+ oldMap .put ((SyntaxElement ) oldEntry .getKey (), (SyntaxElement ) oldEntry .getValue ());
173174 }
174175 }
175176 return oldMap ;
@@ -200,7 +201,7 @@ private void freeVariablesAfterReturn(Node node, RuleApp ruleApp, boolean inScop
200201 * @param oldMap the oldMap variableNamings
201202 */
202203 private void putValuesFromRenamings (ProgramVariable varForCondition , Node node , boolean inScope ,
203- Map <SVSubstitute , SVSubstitute > oldMap , RuleApp ruleApp ) {
204+ Map <SyntaxElement , SyntaxElement > oldMap , RuleApp ruleApp ) {
204205 // look for renamings KeY did
205206 boolean found = false ;
206207 // get current renaming tables
@@ -215,7 +216,7 @@ private void putValuesFromRenamings(ProgramVariable varForCondition, Node node,
215216 .getHashMap ().entrySet ()) {
216217 Entry <?, ?> entry = value ;
217218 if (entry .getKey () instanceof LocationVariable
218- && entry .getValue () instanceof SVSubstitute ) {
219+ && entry .getValue () instanceof SyntaxElement ) {
219220 if ((VariableNamer .getBasename (((LocationVariable ) entry .getKey ()).name ()))
220221 .equals (varForCondition .name ())
221222 && ((LocationVariable ) entry .getKey ()).name ().toString ()
@@ -229,7 +230,7 @@ private void putValuesFromRenamings(ProgramVariable varForCondition, Node node,
229230 // add new value
230231 toKeep .add ((LocationVariable ) entry .getValue ());
231232 getVariableNamingMap ().put (varForCondition ,
232- (SVSubstitute ) entry .getValue ());
233+ (SyntaxElement ) entry .getValue ());
233234 found = true ;
234235 break ;
235236 } else if (inScope && ((LocationVariable ) entry .getKey ()).name ()
@@ -242,7 +243,7 @@ private void putValuesFromRenamings(ProgramVariable varForCondition, Node node,
242243 // add new value
243244 toKeep .add ((LocationVariable ) entry .getValue ());
244245 getVariableNamingMap ().put (varForCondition ,
245- (SVSubstitute ) entry .getValue ());
246+ (SyntaxElement ) entry .getValue ());
246247 found = true ;
247248 break ;
248249 }
@@ -263,7 +264,7 @@ private void putValuesFromRenamings(ProgramVariable varForCondition, Node node,
263264 protected void refreshVarMaps (RuleApp ruleApp , Node node ) {
264265 boolean inScope = isInScope (node );
265266 // collect old values
266- Map <SVSubstitute , SVSubstitute > oldMap = getOldMap ();
267+ Map <SyntaxElement , SyntaxElement > oldMap = getOldMap ();
267268 // put values into map which have to be replaced
268269 for (ProgramVariable varForCondition : getVarsForCondition ()) {
269270 // put global variables only done when a variable is instantiated by
@@ -498,14 +499,14 @@ public Set<LocationVariable> getToKeep() {
498499 /**
499500 * @return the variableNamingMap
500501 */
501- public Map <SVSubstitute , SVSubstitute > getVariableNamingMap () {
502+ public Map <SyntaxElement , SyntaxElement > getVariableNamingMap () {
502503 return variableNamingMap ;
503504 }
504505
505506 /**
506507 * @param variableNamingMap the variableNamingMap to set
507508 */
508- public void setVariableNamingMap (Map <SVSubstitute , SVSubstitute > variableNamingMap ) {
509+ public void setVariableNamingMap (Map <SyntaxElement , SyntaxElement > variableNamingMap ) {
509510 this .variableNamingMap = variableNamingMap ;
510511 }
511512
0 commit comments