File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ time $DAFNY test --target:$TARGET_LANG src/interop/$TARGET_LANG/Extern/Random.$T
21
21
echo Running $TARGET_LANG documentation...
22
22
23
23
echo " Building docs/dafny/ExamplesRandom.dfy..."
24
- $DAFNY build docs/dafny/ExamplesRandom.dfy --target:$TARGET_LANG src/interop/$TARGET_LANG /Extern/Random.$TARGET_LANG src/DafnyVMC.dfy src/DafnyVMCTrait.dfy dfyconfig.toml --no-verify
24
+ $DAFNY build docs/dafny/ExamplesRandom.dfy --target:$TARGET_LANG src/interop/$TARGET_LANG /Extern/Random.$TARGET_LANG src/DafnyVMC.dfy src/DafnyVMCTrait.dfy dfyconfig.toml --no-verify
25
25
echo " Executing compiled docs/dafny/ExamplesRandom.dfy:"
26
26
if [ " $TARGET_LANG " = " java" ]
27
27
then
Original file line number Diff line number Diff line change 9
9
fi
10
10
11
11
echo Verifying the proofs...
12
- time $DAFNY verify dfyconfig.toml docs/dafny/ExamplesRandom.dfy tests/Tests.dfy tests/TestsRandom.dfy --resource-limit 20000 # 20M resource usage
12
+ time $DAFNY verify dfyconfig.toml docs/dafny/ExamplesRandom.dfy tests/Tests.dfy tests/TestsRandom.dfy src/DafnyVMC.dfy src/DafnyVMCTrait.dfy --resource-limit 20000 # 20M resource usage
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ module Coin.Implementation {
16
16
ensures Model. Sample (old(s)) == Monad. Result (b, s)
17
17
{
18
18
var x := UniformPowerOfTwoSample (2);
19
- b := if x == 0 then false else true ;
19
+ b := if x == 1 then true else false ;
20
+ reveal UniformPowerOfTwo. Model. Sample ();
20
21
}
21
-
22
+
22
23
}
23
24
24
25
}
You can’t perform that action at this time.
0 commit comments