Skip to content

Commit

Permalink
TO BE REVERTED: temporarily disable a failing post-condition in `Code…
Browse files Browse the repository at this point in the history
…MotionAnalysisExtension.merge` to see what the overall result of running the problematic example motivating #91 is...
  • Loading branch information
sageserpent-open committed Oct 17, 2024
1 parent 256fece commit 78c6ba0
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,22 +191,6 @@ object CodeMotionAnalysisExtension extends StrictLogging:
end match
}

// NOTE: have to delay this assumption check until after the complete move
// destination report has been finalized, and *not* make it an invariant
// of `MoveDestination`. This is because divergent moves are entered as
// separate left- and right-moves, so any such invariant could (and does)
// break.
moveDestinationsReport.moveDestinationsByMatches.values.foreach {
moveDestination =>
if moveDestination.isDegenerate then
// We don't consider left- and right-insertions to be degenerate
// moves, as there is no match involved.
assume(
moveDestination.isDivergent || moveDestination.coincident.nonEmpty
)
end if
}

def isMoveDestinationOnGivenSide(
section: Section[Element],
side: Side,
Expand Down

0 comments on commit 78c6ba0

Please sign in to comment.