Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ecScope.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,8 @@ module Op = struct
let add_distr_tag
(pred : path) (bases : string list) (tag : string) (suffix : string) scope
=
if not (EcAlgTactic.is_module_loaded (env scope)) then
hierror "for tag %s, load Distr first" tag;
if EcEnv.Op.by_path_opt pred (env scope) == None then
hierror "for tag %s, load Distr first" tag;

let oppath = EcPath.pqname (path scope) (unloc op.po_name) in
let nparams = List.map EcIdent.fresh tyop.op_tparams in
Expand Down
19 changes: 19 additions & 0 deletions tests/rnd_ll.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require import AllCore.

fail op[lossless] dC : bool distr.

require import Distr.

op[lossless] dC : bool distr.

module M = {
proc p1() = {
var e1;
e1 <$ dC;
}
}.

equiv foo : M.p1 ~ M.p1 : true ==> true.
proc.
rnd.
abort.
2 changes: 1 addition & 1 deletion theories/crypto/DigitalSignatures.eca
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

(* --- Require/Import Theories --- *)
(* -- Built-in (i.e, standard library) -- *)
require import AllCore List.
require import AllCore List Distr.



Expand Down
Loading