File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1431,8 +1431,8 @@ module Op = struct
14311431 let add_distr_tag
14321432 (pred : path ) (bases : string list ) (tag : string ) (suffix : string ) scope
14331433 =
1434- if not ( EcAlgTactic. is_module_loaded (env scope)) then
1435- hierror " for tag %s, load Distr first" tag;
1434+ if EcEnv.Op. by_path_opt pred (env scope) = None then
1435+ hierror " for tag %s, load Distr first" tag;
14361436
14371437 let oppath = EcPath. pqname (path scope) (unloc op.po_name) in
14381438 let nparams = List. map EcIdent. fresh tyop.op_tparams in
Original file line number Diff line number Diff line change 1+ require import AllCore.
2+
3+ fail op[lossless] dC : bool distr.
4+
5+ require import Distr.
6+
7+ op[lossless] dC : bool distr.
8+
9+ module M = {
10+ proc p1 () = {
11+ var e1 ;
12+ e1 <$ dC;
13+ }
14+ }.
15+
16+ equiv foo : M.p1 ~ M.p1 : true ==> true .
17+ proc.
18+ rnd.
19+ abort.
Original file line number Diff line number Diff line change 1212
1313(* --- Require/Import Theories --- *)
1414(* -- Built-in (i.e, standard library) -- *)
15- require import AllCore List.
15+ require import AllCore List Distr .
1616
1717
1818
You can’t perform that action at this time.
0 commit comments