Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
strub committed Oct 16, 2024
1 parent 7bd2843 commit 90b82f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ecCircuits.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ let instrs_equiv
if not (List.for_all (EcTypes.is_loc |- fst) (rd @ wr)) then
raise (CircError "the statements should not read/write global variables");

let pstate = List.map (fun (pv, ty) -> { v_name = EcTypes.get_loc pv; v_type = ty; }) wr in
let pstate = List.map (fun (pv, ty) -> { v_name = EcTypes.get_loc pv; v_type = ty; }) (rd @ wr) in
let pstate, inputs = pstate_of_variables env pstate in

let pstate1 = List.fold_left (process_instr hyps mem) pstate s1 in
Expand Down
5 changes: 2 additions & 3 deletions src/phl/ecPhlRwPrgm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ type change_t = pcodepos * int * pstmt
let process_change ((cpos, i, s) : change_t) (tc : tcenv1) =
let env = FApi.tc1_env tc in
let hs = EcLowPhlGoal.tc1_as_hoareS tc in
let env = EcEnv.Memory.push_active hs.hs_m env in

let cpos =
let env = EcEnv.Memory.push_active hs.hs_m env in
EcTyping.trans_codepos env cpos in
let cpos = EcTyping.trans_codepos env cpos in

let s =
let ue = EcProofTyping.unienv_of_hyps (FApi.tc1_hyps tc) in
Expand Down

0 comments on commit 90b82f8

Please sign in to comment.