Skip to content

Commit

Permalink
fix replay of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframPfeifer committed Oct 27, 2023
1 parent 6169ba5 commit ea9009f
Show file tree
Hide file tree
Showing 2 changed files with 7,976 additions and 735 deletions.
11 changes: 10 additions & 1 deletion src/main/java/de/wiesler/Cleanup.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,16 @@ public static void cleanup(
@
@ assignable values[start..stop - 1];
@*/
{}
{
if (stop - start <= Constants.ACTUAL_BASE_CASE_SIZE || is_last_level) {
//@ ghost \seq bucketValuesBeforeSort = \dl_seq_def_workaround(start, stop, values);
// seqPerm(seq, seq2)
// forall i in seq2; f(i) ==> forall i in seq; f(i)
Sorter.fallback_sort(values, start, stop);
//@ ghost \seq bucketValuesAfterSort = \dl_seq_def_workaround(start, stop, values);
//@ assert (\forall int i; 0 <= i < bucketValuesAfterSort.length; classifier.classOf((int)bucketValuesAfterSort[i]) == bucket);
}
}

/*@ assert \invariant_for(classifier) && \invariant_for(bucket_pointers) && \invariant_for(buffers) &&
@ Functions.countElementSplit(values, begin, begin + \old(bucket_starts[bucket]), begin + \old(bucket_starts[bucket + 1])) &&
Expand Down
Loading

0 comments on commit ea9009f

Please sign in to comment.