Skip to content

Commit

Permalink
remove biginteger reference in uniformintervalsample32
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-aws committed Mar 12, 2024
1 parent b2a5f41 commit 88dd436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Distributions/Uniform/Interface.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ module Uniform.Interface {
ensures a <= u < b
ensures Model.IntervalSample(a as int, b as int)(old(s)) == Monad.Result(u as int, s)
{
var v := UniformSample32((b as int - a as int) as pos32);
var v := UniformSample32(b-a);
assert Model.Sample(b as int - a as int)(old(s)) == Monad.Result(v as nat, s);
assert Model.IntervalSample(a as int, b as int)(old(s)) == Monad.Result(a as int + v as int, s);
u := a + (v as int32);
u := a + v;
}

}
Expand Down

0 comments on commit 88dd436

Please sign in to comment.