Skip to content

Commit 79dad82

Browse files
committed
naming issue, interface
1 parent 3b40ceb commit 79dad82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Util/FisherYates/Interface.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module FisherYates.Interface {
1313
method Shuffle<T>(a: array<T>)
1414
decreases *
1515
modifies `s, a
16-
//ensures Model.Shuffle(old(a[..]))(old(s)) == Monad.Result(a[..], s)
16+
ensures Model.Shuffle(old(a[..]))(old(s)) == Monad.Result(a[..], s)
1717

1818
}
1919
}

src/interop/java/Full/Random.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public void Shuffle(short[] arr) {
102102
FisherYates.Implementation._Companion_Trait.Shuffle(TypeDescriptor.SHORT, this, arr);
103103
}
104104

105-
public <__T> void Swap(dafny.TypeDescriptor<__T> _td___T, java.lang.Object a, BigInteger x, BigInteger y) {
106-
FisherYates.Implementation._Companion_Trait.Shuffle(_td___T, this, a, x, y);
105+
public <__T> void Swap(dafny.TypeDescriptor<__T> _td___T, java.lang.Object a, java.math.BigInteger i, java.math.BigInteger j) {
106+
FisherYates.Implementation._Companion_Trait.Swap(_td___T, this, a, i, j);
107107
}
108108

109109
}

0 commit comments

Comments
 (0)