Skip to content

Commit a828b25

Browse files
committed
Merge remote-tracking branch 'origin/main' into bdep_ecCircuitsRefactor
2 parents 3e65ac9 + 322e303 commit a828b25

11 files changed

Lines changed: 387 additions & 295 deletions

File tree

scripts/docker/Dockerfile.base

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
FROM debian:stable
44

5-
MAINTAINER Pierre-Yves Strub <[email protected]>
5+
LABEL org.opencontainers.image.maintainer="Pierre-Yves Strub <[email protected]>"
66

77
ARG user=charlie
88

9-
ENV DEBIAN_FRONTEND noninteractive
9+
ENV DEBIAN_FRONTEND=noninteractive
1010

1111
RUN \
1212
apt-get -q -y update && \

scripts/docker/Dockerfile.formosa

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# syntax = devthefuture/dockerfile-x
2+
3+
FROM ./Dockerfile.build as build-formosa
4+
5+
RUN \
6+
opam install --deps-only --confirm-level=unsafe-yes jasmin && \
7+
opam clean

scripts/docker/Dockerfile.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ FROM ./Dockerfile.build
55
ARG EC_VERSION=main
66

77
RUN \
8-
opam pin --dev-repo \
9-
add -n easycrypt https://github.com/EasyCrypt/easycrypt.git#${EC_VERSION} && \
8+
opam pin add -n easycrypt https://github.com/EasyCrypt/easycrypt.git#${EC_VERSION} && \
109
opam install -v easycrypt && \
1110
rm -rf .opam/packages.dev/*

src/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(env
22
(dev (flags :standard -rectypes -w @[email protected]@31..39@[email protected]@[email protected] -warn-error -a+31))
33
(ci (flags :standard -rectypes -w @[email protected]@31..39@[email protected]@[email protected] -warn-error +a))
4-
(release (flags :standard -rectypes)
4+
(release (flags :standard -rectypes -w @[email protected]@31..39@[email protected]@[email protected] -warn-error -a)
55
(ocamlopt_flags -O3 -unbox-closures)))
66

77

src/ecCoreModules.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ type top_module_expr = {
494494
tme_loca : locality;
495495
}
496496

497+
let is_me_body_alias (body : module_body) =
498+
match body with ME_Alias _ -> true | _ -> false
499+
497500
(* -------------------------------------------------------------------- *)
498501
let ur_hash = EcAst.ur_hash
499502

src/ecCoreModules.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ type top_module_expr = {
247247
tme_loca : locality;
248248
}
249249

250+
val is_me_body_alias : module_body -> bool
251+
250252
(* -------------------------------------------------------------------- *)
251253
val mty_equal :
252254
module_type ->

src/ecHiGoal.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,8 +1515,12 @@ let rec process_mintros_1 ?(cf = true) ttenv pis gs =
15151515
and intro1_rw (_ : ST.state) (o, s) tc =
15161516
let h = EcIdent.create "_" in
15171517
let rwt tc =
1518-
let pt = PT.pt_of_hyp !!tc (FApi.tc1_hyps tc) h in
1519-
process_rewrite1_core ~close:false (s, None, o) pt tc
1518+
match LDecl.by_id h (FApi.tc1_hyps tc) with
1519+
| LD_hyp _ ->
1520+
let pt = PT.pt_of_hyp !!tc (FApi.tc1_hyps tc) h in
1521+
process_rewrite1_core ~close:false (s, None, o) pt tc
1522+
| _ ->
1523+
tc_error !!tc "top assumption is not an hypothesis";
15201524
in t_seqs [t_intros_i [h]; rwt; t_clear h] tc
15211525

15221526
and intro1_unfold (_ : ST.state) (s, o) p tc =

src/ecMatching.ml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -837,19 +837,20 @@ let f_match_core opts hyps (ue, ev) f1 f2 =
837837
cb (odfl reduced (EcReduction.h_red_opt EcReduction.beta_red hyps reduced))
838838

839839
and doit_mem _env mxs m1 m2 =
840-
match EV.get m1 !ev.evm_mem with
841-
| None ->
842-
if not (EcMemory.mem_equal m1 m2) then
840+
if not (EcMemory.mem_equal m1 m2) then begin
841+
match EV.get m1 !ev.evm_mem with
842+
| None ->
843843
raise MatchFailure
844844

845-
| Some `Unset ->
846-
if Mid.mem m2 mxs then
847-
raise MatchFailure;
848-
ev := { !ev with evm_mem = EV.set m1 m2 !ev.evm_mem }
849-
850-
| Some (`Set m1) ->
851-
if not (EcMemory.mem_equal m1 m2) then
852-
raise MatchFailure
845+
| Some `Unset ->
846+
if Mid.mem m2 mxs then
847+
raise MatchFailure;
848+
ev := { !ev with evm_mem = EV.set m1 m2 !ev.evm_mem }
849+
850+
| Some (`Set m1) ->
851+
if not (EcMemory.mem_equal m1 m2) then
852+
raise MatchFailure
853+
end
853854

854855
and doit_bindings env (subst, mxs) q1 q2 =
855856
let doit_binding (env, subst, mxs) (x1, gty1) (x2, gty2) =

0 commit comments

Comments
 (0)