val va_wp_Pclmulqdq
      (dst src: va_operand_xmm)
      (dstHi srcHi: bool)
      (va_s0: va_state)
      (va_k: (va_state -> unit -> Type0))
    : Type0
let va_wp_Pclmulqdq (dst:va_operand_xmm) (src:va_operand_xmm) (dstHi:bool) (srcHi:bool)
  (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
  (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ pclmulqdq_enabled /\
    (forall (va_x_dst:va_value_xmm) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl
    (va_upd_operand_xmm dst va_x_dst va_s0) in va_get_ok va_sM /\ va_eval_xmm va_sM dst ==
    Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.mul (Vale.Math.Poly2.Bits_s.of_double32
    (va_if dstHi (fun _ -> Vale.Arch.Types.quad32_double_hi (va_eval_xmm va_s0 dst)) (fun _ ->
    Vale.Arch.Types.quad32_double_lo (va_eval_xmm va_s0 dst)))) (Vale.Math.Poly2.Bits_s.of_double32
    (va_if srcHi (fun _ -> Vale.Arch.Types.quad32_double_hi (va_eval_xmm va_s0 src)) (fun _ ->
    Vale.Arch.Types.quad32_double_lo (va_eval_xmm va_s0 src))))) ==> va_k va_sM (())))
val va_wp_Pclmulqdq
      (dst src: va_operand_xmm)
      (dstHi srcHi: bool)
      (va_s0: va_state)
      (va_k: (va_state -> unit -> Type0))
    : Type0
let va_wp_Pclmulqdq
      (dst src: va_operand_xmm)
      (dstHi srcHi: bool)
      (va_s0: va_state)
      (va_k: (va_state -> unit -> Type0))
    : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ pclmulqdq_enabled /\
  (forall (va_x_dst: va_value_xmm) (va_x_efl: Vale.X64.Flags.t).
      let va_sM = va_upd_flags va_x_efl (va_upd_operand_xmm dst va_x_dst va_s0) in
      va_get_ok va_sM /\
      va_eval_xmm va_sM dst ==
      Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.mul (Vale.Math.Poly2.Bits_s.of_double32 (va_if
                    dstHi
                    (fun _ -> Vale.Arch.Types.quad32_double_hi (va_eval_xmm va_s0 dst))
                    (fun _ -> Vale.Arch.Types.quad32_double_lo (va_eval_xmm va_s0 dst))))
            (Vale.Math.Poly2.Bits_s.of_double32 (va_if srcHi
                    (fun _ -> Vale.Arch.Types.quad32_double_hi (va_eval_xmm va_s0 src))
                    (fun _ -> Vale.Arch.Types.quad32_double_lo (va_eval_xmm va_s0 src))))) ==>
      va_k va_sM (())))
Vale.X64.InsAes.fsti.checked
Vale.X64.State.fsti.checked Vale.X64.QuickCode.fst.checked Vale.X64.Machine_s.fst.checked Vale.X64.Flags.fsti.checked Vale.X64.Decls.fsti.checked Vale.X64.CPU_Features_s.fst.checked Vale.Math.Poly2_s.fsti.checked Vale.Math.Poly2.Bits_s.fsti.checked Vale.Def.Words_s.fsti.checked Vale.Def.Types_s.fst.checked Vale.Arch.Types.fsti.checked Vale.AES.AES_s.fst.checked Vale.AES.AES_common_s.fst.checked prims.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.X64.InsAes.fsti
Vale.X64.Decls.va_operand_xmm Prims.bool Vale.X64.Decls.va_state Prims.unit Prims.l_and Vale.X64.Decls.va_is_dst_xmm Vale.X64.Decls.va_is_src_xmm Prims.b2t Vale.X64.Decls.va_get_ok Vale.X64.CPU_Features_s.pclmulqdq_enabled Prims.l_Forall Vale.X64.Decls.va_value_xmm Vale.X64.Flags.t Prims.l_imp Prims.eq2 Vale.Def.Types_s.quad32 Vale.X64.Decls.va_eval_xmm Vale.Math.Poly2.Bits_s.to_quad32 Vale.Math.Poly2_s.mul Vale.Math.Poly2.Bits_s.of_double32 Vale.X64.Decls.va_if Vale.Def.Types_s.double32 Vale.Arch.Types.quad32_double_hi Prims.l_not Vale.Arch.Types.quad32_double_lo Vale.X64.State.vale_state Vale.X64.Decls.va_upd_flags Vale.X64.Decls.va_upd_operand_xmm
module Vale.X64.InsAes
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.AES.AES_s
open Vale.Math.Poly2_s
open Vale.Math.Poly2.Bits_s
open Vale.X64.Machine_s
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.QuickCode
open Vale.X64.CPU_Features_s
//-- Pclmulqdq

val va_code_Pclmulqdq : dst:va_operand_xmm -> src:va_operand_xmm -> dstHi:bool -> srcHi:bool -> Tot
  va_code

val va_codegen_success_Pclmulqdq : dst:va_operand_xmm -> src:va_operand_xmm -> dstHi:bool ->
  srcHi:bool -> Tot va_pbool

val va_lemma_Pclmulqdq : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
  src:va_operand_xmm -> dstHi:bool -> srcHi:bool
  -> Ghost (va_state & va_fuel)
  (requires (va_require_total va_b0 (va_code_Pclmulqdq dst src dstHi srcHi) va_s0 /\ va_is_dst_xmm
    dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ pclmulqdq_enabled))
  (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
    va_eval_xmm va_sM dst == Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.mul
    (Vale.Math.Poly2.Bits_s.of_double32 (if dstHi then Vale.Arch.Types.quad32_double_hi
    (va_eval_xmm va_s0 dst) else Vale.Arch.Types.quad32_double_lo (va_eval_xmm va_s0 dst)))
    (Vale.Math.Poly2.Bits_s.of_double32 (if srcHi then Vale.Arch.Types.quad32_double_hi
    (va_eval_xmm va_s0 src) else Vale.Arch.Types.quad32_double_lo (va_eval_xmm va_s0 src)))) /\
    va_state_eq va_sM (va_update_flags va_sM (va_update_ok va_sM (va_update_operand_xmm dst va_sM
    va_s0)))))
[@ va_qattr]
let va_wp_Pclmulqdq (dst:va_operand_xmm) (src:va_operand_xmm) (dstHi:bool) (srcHi:bool)
val va_wp_Pclmulqdq
      (dst src: va_operand_xmm)
      (dstHi srcHi: bool)
      (va_s0: va_state)
      (va_k: (va_state -> unit -> Type0))
    : Type0

    dst: Vale.X64.Decls.va_operand_xmm ->
    src: Vale.X64.Decls.va_operand_xmm ->
    dstHi: Prims.bool ->
    srcHi: Prims.bool ->
    va_s0: Vale.X64.Decls.va_state ->
    va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
  -> Type0