val va_qcode_KeyExpansionStdcall
      (va_mods: va_mods_t)
      (alg: algorithm)
      (input_key_b output_key_expansion_b: buffer128)
    : (va_quickCode unit (va_code_KeyExpansionStdcall alg))
let va_qcode_KeyExpansionStdcall (va_mods:va_mods_t) (alg:algorithm) (input_key_b:buffer128)
  (output_key_expansion_b:buffer128) : (va_quickCode unit (va_code_KeyExpansionStdcall alg)) =
  (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in let
    (in_key1:Vale.Def.Types_s.quad32) = Vale.Def.Types_s.reverse_bytes_quad32
    (Vale.PPC64LE.Decls.buffer128_read input_key_b 0 (va_get_mem va_s)) in let
    (in_key2:Vale.Def.Types_s.quad32) = Vale.Def.Types_s.reverse_bytes_quad32
    (Vale.PPC64LE.Decls.buffer128_read input_key_b 1 (va_get_mem va_s)) in let
    (key:(FStar.Seq.Base.seq Vale.Def.Types_s.nat32)) = va_if (alg = AES_128) (fun _ ->
    Vale.AES.AES256_helpers_BE.be_quad32_to_seq in_key1) (fun _ ->
    Vale.AES.AES256_helpers_BE.make_AES256_key in_key1 in_key2) in va_QBind va_range1
    "***** PRECONDITION NOT MET AT line 72 column 19 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
    (va_quick_CreateHeaplets ([declare_buffer128 input_key_b 0 Secret Immutable; declare_buffer128
    output_key_expansion_b 1 Secret Mutable])) (fun (va_s:va_state) _ -> va_QBind va_range1
    "***** PRECONDITION NOT MET AT line 76 column 15 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
    (va_qInlineIf va_mods (alg = AES_128) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1
    "***** PRECONDITION NOT MET AT line 77 column 31 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
    (va_quick_KeyExpansion128Stdcall input_key_b output_key_expansion_b) (va_QEmpty (())))) (qblock
    va_mods (fun (va_s:va_state) -> va_QSeq va_range1
    "***** PRECONDITION NOT MET AT line 79 column 31 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
    (va_quick_KeyExpansion256Stdcall input_key_b output_key_expansion_b) (va_QEmpty (()))))) (fun
    (va_s:va_state) va_g -> va_QSeq va_range1
    "***** PRECONDITION NOT MET AT line 82 column 20 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
    (va_quick_DestroyHeaplets ()) (va_QEmpty (()))))))
val va_qcode_KeyExpansionStdcall
      (va_mods: va_mods_t)
      (alg: algorithm)
      (input_key_b output_key_expansion_b: buffer128)
    : (va_quickCode unit (va_code_KeyExpansionStdcall alg))
let va_qcode_KeyExpansionStdcall
      (va_mods: va_mods_t)
      (alg: algorithm)
      (input_key_b output_key_expansion_b: buffer128)
    : (va_quickCode unit (va_code_KeyExpansionStdcall alg)) =
(qblock va_mods
    (fun (va_s: va_state) ->
        let va_old_s:va_state = va_s in
        let in_key1:Vale.Def.Types_s.quad32 =
          Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read input_key_b
                0
                (va_get_mem va_s))
        in
        let in_key2:Vale.Def.Types_s.quad32 =
          Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read input_key_b
                1
                (va_get_mem va_s))
        in
        let key:(FStar.Seq.Base.seq Vale.Def.Types_s.nat32) =
          va_if (alg = AES_128)
            (fun _ -> Vale.AES.AES256_helpers_BE.be_quad32_to_seq in_key1)
            (fun _ -> Vale.AES.AES256_helpers_BE.make_AES256_key in_key1 in_key2)
        in
        va_QBind va_range1
          "***** PRECONDITION NOT MET AT line 72 column 19 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
          (va_quick_CreateHeaplets ([
                  declare_buffer128 input_key_b 0 Secret Immutable;
                  declare_buffer128 output_key_expansion_b 1 Secret Mutable
                ]))
          (fun (va_s: va_state) _ ->
              va_QBind va_range1
                "***** PRECONDITION NOT MET AT line 76 column 15 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
                (va_qInlineIf va_mods
                    (alg = AES_128)
                    (qblock va_mods
                        (fun (va_s: va_state) ->
                            va_QSeq va_range1
                              "***** PRECONDITION NOT MET AT line 77 column 31 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
                              (va_quick_KeyExpansion128Stdcall input_key_b output_key_expansion_b)
                              (va_QEmpty (()))))
                    (qblock va_mods
                        (fun (va_s: va_state) ->
                            va_QSeq va_range1
                              "***** PRECONDITION NOT MET AT line 79 column 31 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
                              (va_quick_KeyExpansion256Stdcall input_key_b output_key_expansion_b)
                              (va_QEmpty (())))))
                (fun (va_s: va_state) va_g ->
                    va_QSeq va_range1
                      "***** PRECONDITION NOT MET AT line 82 column 20 of file /home/gebner/everest/hacl-star/vale/code/crypto/aes/ppc64le/Vale.AES.PPC64LE.AES.vaf *****"
                      (va_quick_DestroyHeaplets ())
                      (va_QEmpty (()))))))
Vale.AES.PPC64LE.AES.fst.checked
Vale.PPC64LE.State.fsti.checked Vale.PPC64LE.QuickCodes.fsti.checked Vale.PPC64LE.QuickCode.fst.checked Vale.PPC64LE.Memory.fsti.checked Vale.PPC64LE.Machine_s.fst.checked Vale.PPC64LE.InsVector.fsti.checked Vale.PPC64LE.InsMem.fsti.checked Vale.PPC64LE.InsBasic.fsti.checked Vale.PPC64LE.Decls.fsti.checked Vale.Def.Types_s.fst.checked Vale.Def.Opaque_s.fsti.checked Vale.Arch.Types.fsti.checked Vale.Arch.HeapImpl.fsti.checked Vale.AES.PPC64LE.AES256.fsti.checked Vale.AES.PPC64LE.AES128.fsti.checked Vale.AES.AES_common_s.fst.checked Vale.AES.AES_BE_s.fst.checked Vale.AES.AES256_helpers_BE.fsti.checked prims.fst.checked FStar.Seq.Base.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.AES.PPC64LE.AES.fst
Vale.PPC64LE.QuickCode.va_mods_t Vale.AES.AES_common_s.algorithm Vale.PPC64LE.Memory.buffer128 Vale.PPC64LE.QuickCodes.qblock Prims.unit Prims.Cons Vale.PPC64LE.Decls.va_code Vale.PPC64LE.InsMem.va_code_CreateHeaplets Vale.PPC64LE.QuickCodes.if_code Prims.op_Equality Vale.AES.AES_common_s.AES_128 Vale.PPC64LE.QuickCodes.block Vale.AES.PPC64LE.AES128.va_code_KeyExpansion128Stdcall Prims.Nil Vale.PPC64LE.Machine_s.precode Vale.PPC64LE.Decls.ins Vale.PPC64LE.Decls.ocmp Vale.AES.PPC64LE.AES256.va_code_KeyExpansion256Stdcall Vale.PPC64LE.InsMem.va_code_DestroyHeaplets Vale.PPC64LE.Decls.va_state Vale.PPC64LE.QuickCodes.va_QBind Vale.PPC64LE.QuickCodes.va_range1 Vale.PPC64LE.InsMem.va_quick_CreateHeaplets Vale.Arch.HeapImpl.buffer_info Vale.PPC64LE.InsMem.declare_buffer128 Vale.Arch.HeapTypes_s.Secret Vale.Arch.HeapImpl.Immutable Vale.Arch.HeapImpl.Mutable Vale.PPC64LE.QuickCodes.va_qInlineIf Vale.PPC64LE.QuickCodes.va_QSeq Vale.AES.PPC64LE.AES128.va_quick_KeyExpansion128Stdcall Vale.PPC64LE.QuickCodes.va_QEmpty Vale.PPC64LE.QuickCodes.quickCodes Vale.AES.PPC64LE.AES256.va_quick_KeyExpansion256Stdcall Vale.PPC64LE.InsMem.va_quick_DestroyHeaplets FStar.Seq.Base.seq Vale.Def.Words_s.nat32 Vale.PPC64LE.Decls.va_if Vale.Def.Types_s.nat32 Prims.b2t Vale.AES.AES256_helpers_BE.be_quad32_to_seq Prims.l_not Vale.AES.AES256_helpers_BE.make_AES256_key Vale.Def.Types_s.quad32 Vale.Def.Types_s.reverse_bytes_quad32 Vale.PPC64LE.Decls.buffer128_read Vale.PPC64LE.Decls.va_get_mem Vale.PPC64LE.Machine_s.state Vale.PPC64LE.QuickCode.va_quickCode Vale.AES.PPC64LE.AES.va_code_KeyExpansionStdcall
module Vale.AES.PPC64LE.AES
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.HeapImpl
open Vale.AES.AES_BE_s
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale.PPC64LE.InsBasic
open Vale.PPC64LE.InsMem
open Vale.PPC64LE.InsVector
open Vale.PPC64LE.QuickCode
open Vale.PPC64LE.QuickCodes
open Vale.Arch.Types
open Vale.Def.Opaque_s
open Vale.AES.PPC64LE.AES128
open Vale.AES.PPC64LE.AES256
#reset-options "--z3rlimit 20"
//-- KeyExpansionStdcall

[@ "opaque_to_smt" va_qattr]
let va_code_KeyExpansionStdcall alg =
  (va_Block (va_CCons (va_code_CreateHeaplets ()) (va_CCons (if (alg = AES_128) then va_Block
    (va_CCons (va_code_KeyExpansion128Stdcall ()) (va_CNil ())) else va_Block (va_CCons
    (va_code_KeyExpansion256Stdcall ()) (va_CNil ()))) (va_CCons (va_code_DestroyHeaplets ())
    (va_CNil ())))))

[@ "opaque_to_smt" va_qattr]
let va_codegen_success_KeyExpansionStdcall alg =
  (va_pbool_and (va_codegen_success_CreateHeaplets ()) (va_pbool_and (if (alg = AES_128) then
    va_pbool_and (va_codegen_success_KeyExpansion128Stdcall ()) (va_ttrue ()) else va_pbool_and
    (va_codegen_success_KeyExpansion256Stdcall ()) (va_ttrue ())) (va_pbool_and
    (va_codegen_success_DestroyHeaplets ()) (va_ttrue ()))))

[@ "opaque_to_smt" va_qattr]
let va_qcode_KeyExpansionStdcall (va_mods:va_mods_t) (alg:algorithm) (input_key_b:buffer128)
val va_qcode_KeyExpansionStdcall
      (va_mods: va_mods_t)
      (alg: algorithm)
      (input_key_b output_key_expansion_b: buffer128)
    : (va_quickCode unit (va_code_KeyExpansionStdcall alg))

    va_mods: Vale.PPC64LE.QuickCode.va_mods_t ->
    alg: Vale.AES.AES_common_s.algorithm ->
    input_key_b: Vale.PPC64LE.Memory.buffer128 ->
    output_key_expansion_b: Vale.PPC64LE.Memory.buffer128
  -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
      (Vale.AES.PPC64LE.AES.va_code_KeyExpansionStdcall alg)