File tree 3 files changed +6
-4
lines changed
AwsCryptographicMaterialProviders/runtimes/rust/src
TestVectorsAwsCryptographicMaterialProviders/dafny/TestVectorsAwsCryptographicMaterialProviders/src
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub mod internal_StormTrackingCMC {
70
70
) } ) ;
71
71
}
72
72
EmptyWait { } => {
73
- if ( crate :: Time :: _default:: CurrentRelativeTimeMilli ( ) <= max_in_flight) {
73
+ if crate :: Time :: _default:: CurrentRelativeTimeMilli ( ) <= max_in_flight {
74
74
std:: thread:: sleep ( sleep_time) ;
75
75
} else {
76
76
return std:: rc:: Rc :: new ( crate :: _Wrappers_Compile:: Result :: Failure { error :
Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ module {:extern "SortedSets"} SortedSets {
25
25
ensures forall k < - s :: k in res
26
26
ensures |res| == |s|
27
27
28
- function method {:extern "SetToSequence"} ComputeSetToSequence< T (==, !new)> (
28
+ // This must be a method, not a function, because the results are not deterministic
29
+ // It might even return different results for the same input
30
+ method {:extern "SetToSequence"} ComputeSetToSequence< T (==, !new)> (
29
31
s: set < T>
30
32
)
31
- : (res: seq < T> )
33
+ returns (res: seq < T> )
32
34
ensures Seq. HasNoDuplicates (res)
33
35
ensures forall k < - res :: k in s
34
36
ensures forall k < - s :: k in res
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ module {:options "-functionSyntax:4"} WriteJsonManifests {
39
39
function EncryptionContextToJson (key: string , m: Types .EncryptionContext)
40
40
: Result< seq < (string , JSON)> , string >
41
41
{
42
- var keys := SortedSets. ComputeSetToSequence (m.Keys);
42
+ var keys := SortedSets. ComputeSetToOrderedSequence2 (m.Keys, (a, b) = > a < b );
43
43
var pairsBytes
44
44
:- Seq. MapWithResult (
45
45
k requires k in m.Keys =>
You can’t perform that action at this time.
0 commit comments