Skip to content

Commit

Permalink
fix bug failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikTaquist committed Jan 24, 2024
1 parent c8a20fe commit fa89a91
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,21 @@ SymbolicSuffix coalesceSuffixes(SymbolicSuffix suffix1, SymbolicSuffix suffix2)

// TODO Do we need to make sv free if one of the sv's is equal to a previous sv?
boolean free = freeIndices1.contains(index1) || freeIndices2.contains(index1) || freeIndices1.contains(index2) || freeIndices2.contains(index2);
boolean notSeen = false;

if (seenVals1.contains(sv1) && !free) {
sv = sValMapping.get(sv1);
} else if (seenVals2.contains(sv2) && !free) {
sv = sValMapping.get(sv2);
} else {
notSeen = true;
}
if (sv != null && freeValues.contains(sv))
free = true;
if (notSeen || free) {
sv = sgen.next(type);
if (free) {
freeValues.add(sv);
freeValues.add(sv);
}
}
seenVals1.add(sv1);
Expand Down

0 comments on commit fa89a91

Please sign in to comment.