val va_wpProof_SHA256_msg1 : dst:va_operand_xmm -> src:va_operand_xmm -> t:counter -> block:block_w
  -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
  -> Ghost (va_state & va_fuel & unit)
  (requires (va_t_require va_s0 /\ va_wp_SHA256_msg1 dst src t block va_s0 va_k))
  (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_SHA256_msg1 dst src) ([va_mod_xmm
    dst]) va_s0 va_k ((va_sM, va_f0, va_g))))
let va_wpProof_SHA256_msg1 dst src t block va_s0 va_k =
  let (va_sM, va_f0) = va_lemma_SHA256_msg1 (va_code_SHA256_msg1 dst src) va_s0 dst src t block in
  va_lemma_upd_update va_sM;
  assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_xmm dst va_sM va_s0)));
  va_lemma_norm_mods ([va_mod_xmm dst]) va_sM va_s0;
  let va_g = () in
  (va_sM, va_f0, va_g)
val va_wpProof_SHA256_msg1 : dst:va_operand_xmm -> src:va_operand_xmm -> t:counter -> block:block_w
  -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
  -> Ghost (va_state & va_fuel & unit)
  (requires (va_t_require va_s0 /\ va_wp_SHA256_msg1 dst src t block va_s0 va_k))
  (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_SHA256_msg1 dst src) ([va_mod_xmm
    dst]) va_s0 va_k ((va_sM, va_f0, va_g))))
let va_wpProof_SHA256_msg1 dst src t block va_s0 va_k =
let va_sM, va_f0 = va_lemma_SHA256_msg1 (va_code_SHA256_msg1 dst src) va_s0 dst src t block in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_xmm dst va_sM va_s0)));
va_lemma_norm_mods ([va_mod_xmm dst]) va_sM va_s0;
let va_g = () in
(va_sM, va_f0, va_g)
Vale.X64.InsSha.fst.checked
Vale.X64.Taint_Semantics.fst.checked Vale.X64.StateLemmas.fsti.checked Vale.X64.State.fsti.checked Vale.X64.Print_s.fst.checked Vale.X64.Machine_Semantics_s.fst.checked Vale.X64.Machine_s.fst.checked Vale.X64.Instructions_s.fsti.checked Vale.X64.InsLemmas.fsti.checked Vale.X64.Decls.fst.checked Vale.X64.Decls.fst.checked Vale.X64.CryptoInstructions_s.fsti.checked Vale.X64.CPU_Features_s.fst.checked Vale.Def.Types_s.fst.checked Spec.SHA2.fsti.checked Spec.Hash.Definitions.fst.checked prims.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.X64.InsSha.fst
Vale.X64.Decls.va_operand_xmm Vale.SHA.SHA_helpers.counter Vale.SHA.SHA_helpers.block_w Vale.X64.Decls.va_state Prims.unit Vale.X64.Decls.va_fuel FStar.Pervasives.Native.Mktuple3 Vale.X64.QuickCode.va_lemma_norm_mods Prims.Cons Vale.X64.QuickCode.mod_t Vale.X64.QuickCode.va_mod_xmm Prims.Nil Prims._assert Vale.X64.Decls.va_state_eq Vale.X64.Decls.va_update_ok Vale.X64.Decls.va_update_operand_xmm Vale.X64.Decls.va_lemma_upd_update FStar.Pervasives.Native.tuple3 FStar.Pervasives.Native.tuple2 Vale.X64.State.vale_state Vale.X64.InsSha.va_lemma_SHA256_msg1 Vale.X64.InsSha.va_code_SHA256_msg1
module Vale.X64.InsSha
open Vale.Def.Types_s
open Vale.X64.Machine_s
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.InsLemmas
open Vale.X64.Taint_Semantics
open Vale.X64.Decls
open Vale.X64.CryptoInstructions_s
open Spec.Hash.Definitions
open Spec.SHA2
open Vale.X64.CPU_Features_s
module I = Vale.X64.Instructions_s
module S = Vale.X64.Machine_Semantics_s
module P = Vale.X64.Print_s

friend Vale.X64.Decls
#reset-options "--initial_fuel 4 --max_fuel 4 --max_ifuel 2 --z3rlimit 20"
//-- SHA256_rnds2

[@ "opaque_to_smt"]
let va_code_SHA256_rnds2 dst src =
  (mk_ins (make_instr (I.ins_SHA256_rnds2) (OReg dst) (OReg src)))

[@ "opaque_to_smt"]
let va_codegen_success_SHA256_rnds2 dst src =
  (va_ttrue ())

[@"opaque_to_smt"]
let va_lemma_SHA256_rnds2 va_b0 va_s0 dst src t block hash_orig =
  va_reveal_opaque (`%va_code_SHA256_rnds2) (va_code_SHA256_rnds2 dst src);
  let (va_old_s:va_state) = va_s0 in
  va_ins_lemma (mk_ins (make_instr (I.ins_SHA256_rnds2) (OReg dst) (OReg src))) va_s0;
  let (va_sM, va_fM) = va_eval_ins (mk_ins (make_instr (I.ins_SHA256_rnds2) (OReg dst) (OReg src)))
    va_s0 in
  lemma_sha256_rnds2 (va_eval_xmm va_old_s src) (va_eval_xmm va_old_s dst) (va_get_xmm 0 va_old_s)
    t block hash_orig;
  (va_sM, va_fM)


[@"opaque_to_smt"]
let va_wpProof_SHA256_rnds2 dst src t block hash_orig va_s0 va_k =
  let (va_sM, va_f0) = va_lemma_SHA256_rnds2 (va_code_SHA256_rnds2 dst src) va_s0 dst src t block
    hash_orig in
  va_lemma_upd_update va_sM;
  assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_xmm dst va_sM va_s0)));
  va_lemma_norm_mods ([va_mod_xmm dst]) va_sM va_s0;
  let va_g = () in
  (va_sM, va_f0, va_g)

//--
//-- SHA256_msg1

[@ "opaque_to_smt"]
let va_code_SHA256_msg1 dst src =
  (mk_ins (make_instr (I.ins_SHA256_msg1) (OReg dst) (OReg src)))

[@ "opaque_to_smt"]
let va_codegen_success_SHA256_msg1 dst src =
  (va_ttrue ())

[@"opaque_to_smt"]
let va_lemma_SHA256_msg1 va_b0 va_s0 dst src t block =
  va_reveal_opaque (`%va_code_SHA256_msg1) (va_code_SHA256_msg1 dst src);
  let (va_old_s:va_state) = va_s0 in
  va_ins_lemma (mk_ins (make_instr (I.ins_SHA256_msg1) (OReg dst) (OReg src))) va_s0;
  let (va_sM, va_fM) = va_eval_ins (mk_ins (make_instr (I.ins_SHA256_msg1) (OReg dst) (OReg src)))
    va_s0 in
  lemma_sha256_msg1 (va_eval_xmm va_old_s dst) (va_eval_xmm va_old_s src) t block;
  (va_sM, va_fM)
val va_wpProof_SHA256_msg1 : dst:va_operand_xmm -> src:va_operand_xmm -> t:counter -> block:block_w
  -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
  -> Ghost (va_state & va_fuel & unit)
  (requires (va_t_require va_s0 /\ va_wp_SHA256_msg1 dst src t block va_s0 va_k))
  (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_SHA256_msg1 dst src) ([va_mod_xmm
    dst]) va_s0 va_k ((va_sM, va_f0, va_g))))

    dst: Vale.X64.Decls.va_operand_xmm ->
    src: Vale.X64.Decls.va_operand_xmm ->
    t: Vale.SHA.SHA_helpers.counter ->
    block: Vale.SHA.SHA_helpers.block_w ->
    va_s0: Vale.X64.Decls.va_state ->
    va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
  -> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit)