Skip to content

Commit b5eb295

Browse files
oskgostrub
authored andcommitted
tc_error when rnd argument is present but unused
remove unneccessary argument in PRG example
1 parent af8d62f commit b5eb295

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/PRG.ec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ section.
337337
inline Resample.resample Psample.init F.init.
338338
rcondf{2} 7;
339339
first by move=> &hr; rnd; wp; conseq (_: _ ==> true) => //.
340-
by wp; rnd; wp; rnd{2} predT; auto; rewrite dseed_ll.
340+
by wp; rnd; wp; rnd{2}; auto; rewrite dseed_ll.
341341
(* presampling ~ postsampling *)
342342
seq 2 2: (={glob A, glob F, glob Plog}); first by sim.
343343
eager (H: Resample.resample(); ~ Resample.resample();

src/phl/ecPhlRnd.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ let wp_equiv_rnd_r bij tc =
587587

588588
(* -------------------------------------------------------------------- *)
589589
let t_equiv_rnd_r side pos bij_info tc =
590-
match side, pos with
591-
| Some side, None ->
590+
match side, pos, bij_info with
591+
| Some side, None, (None, None) ->
592592
wp_equiv_disj_rnd_r side tc
593-
| None, _ -> begin
593+
| None, _, _ -> begin
594594
let pos =
595595
match pos with
596596
| None -> None

0 commit comments

Comments
 (0)