Skip to content

Commit

Permalink
Make SetToOrderedSequence compilable again
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Aug 22, 2024
1 parent 53d3508 commit a79e9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StandardLibrary/src/StandardLibrary.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ module StandardLibrary {
* The function is compilable, but will not exhibit enviable performance.
*/

function SetToOrderedSequence<T(!new,==)>(s: set<seq<T>>, less: (T, T) -> bool): (q: seq<seq<T>>)
function method {:tailrecursion} SetToOrderedSequence<T(!new,==)>(s: set<seq<T>>, less: (T, T) -> bool): (q: seq<seq<T>>)
requires Trichotomous(less) && Transitive(less)
ensures |s| == |q|
ensures forall i :: 0 <= i < |q| ==> q[i] in s
Expand Down

0 comments on commit a79e9f5

Please sign in to comment.