Skip to content

Commit ab58c82

Browse files
authored
Merge branch 'main' into full-testing
2 parents 31926c1 + 6bcf55d commit ab58c82

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/DafnyVMCTrait.dfy

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ module DafnyVMCTrait {
8383
o := true;
8484
} else {
8585
var B := BernoulliExpNegSampleUnit(1, 1);
86-
var R := BernoulliExpNegSampleGenLoop(iter - 1);
87-
o := B == true && R == true;
86+
if ! (B == true) {
87+
o := B;
88+
} else {
89+
var R := BernoulliExpNegSampleGenLoop(iter - 1);
90+
o := R;
91+
}
8892
}
8993
}
9094

0 commit comments

Comments
 (0)