Skip to content

Commit

Permalink
Fixed issue with Scala set intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
PBHTasche committed Jul 17, 2024
1 parent 2d470ef commit 78126d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rewrite/vct/rewrite/rasi/RASIConnection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ case class DistinguishedSuccessor[G](
}

override def factor_out(states: Set[AbstractState[G]]): RASISuccessor[G] = {
val hit: Set[AbstractState[G]] = states.intersect(successors)
val hit: Set[AbstractState[G]] = successors.intersect(states)
// different result for some reason: states.intersect(successors)
if (hit.nonEmpty)
AlternativeSuccessor(
hit.map[RASISuccessor[G]](s => SingleSuccessor(s)) + this.removed_states(hit)
Expand Down

0 comments on commit 78126d4

Please sign in to comment.