val signatureSchemeList_count (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : HST.Stack U32.t
  (requires (fun h -> LL.valid signatureSchemeList_parser h input pos))
  (ensures (fun h res h' ->
    let x = LL.contents signatureSchemeList_parser h input pos in
    let pos' = LL.get_valid_pos signatureSchemeList_parser h input pos in
    B.modifies B.loc_none h h' /\
    U32.v res == L.length x /\
    U32.v pos' == U32.v pos + 2 + (U32.v res `FStar.Mul.op_Star` 2) /\
    LL.valid_list signatureScheme_parser h input (pos `U32.add` 2ul) pos' /\
    LL.contents_list signatureScheme_parser h input (pos `U32.add` 2ul) pos' == x
  ))
let signatureSchemeList_count #_ #_ input pos = LL.vlarray_list_length 2 65534 signatureScheme_serializer 1 32767 input pos
val signatureSchemeList_count (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : HST.Stack U32.t
  (requires (fun h -> LL.valid signatureSchemeList_parser h input pos))
  (ensures (fun h res h' ->
    let x = LL.contents signatureSchemeList_parser h input pos in
    let pos' = LL.get_valid_pos signatureSchemeList_parser h input pos in
    B.modifies B.loc_none h h' /\
    U32.v res == L.length x /\
    U32.v pos' == U32.v pos + 2 + (U32.v res `FStar.Mul.op_Star` 2) /\
    LL.valid_list signatureScheme_parser h input (pos `U32.add` 2ul) pos' /\
    LL.contents_list signatureScheme_parser h input (pos `U32.add` 2ul) pos' == x
  ))
let signatureSchemeList_count #_ #_ input pos =
LL.vlarray_list_length 2 65534 signatureScheme_serializer 1 32767 input pos
Parsers.SignatureSchemeList.fst.checked
prims.fst.checked LowStar.Buffer.fst.checked LowParse.TacLib.fst.checked LowParse.Spec.AllIntegers.fst.checked LowParse.Spec.fst.checked LowParse.SLow.fst.checked LowParse.Low.fst.checked FStar.UInt8.fsti.checked FStar.UInt64.fsti.checked FStar.UInt32.fsti.checked FStar.UInt16.fsti.checked FStar.Tactics.Effect.fsti.checked FStar.Tactics.fst.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.List.Tot.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Bytes.fsti.checked
Parsers.SignatureSchemeList.fst
LowParse.Slice.srel LowParse.Bytes.byte LowParse.Slice.slice FStar.UInt32.t LowParse.Low.Array.vlarray_list_length Parsers.SignatureScheme.signatureScheme_parser_kind Parsers.SignatureScheme.signatureScheme Parsers.SignatureScheme.signatureScheme_parser Parsers.SignatureScheme.signatureScheme_serializer
module Parsers.SignatureSchemeList

(* This file has been automatically generated by EverParse. *)
open FStar.Bytes
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module LP = LowParse.Spec
module LT = LowParse.TacLib
module LS = LowParse.SLow
module LSZ = LowParse.SLow
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST

#reset-options "--using_facts_from '* -FStar.Tactics -FStar.Reflection' --z3rlimit 16 --z3cliopt smt.arith.nl=false --max_fuel 2 --max_ifuel 2"

private let pre : squash (LP.vldata_vlarray_precond 2 65534 signatureScheme_parser 1 32767 == true) = _ by (FStar.Tactics.trefl ())

let signatureSchemeList_parser =
  LP.parse_vlarray 2 65534 signatureScheme_serializer 1 32767 ()

let signatureSchemeList_serializer =
  LP.serialize_vlarray 2 65534 signatureScheme_serializer 1 32767 ()

let signatureSchemeList_bytesize (x:signatureSchemeList) : GTot nat = Seq.length (signatureSchemeList_serializer x)

let signatureSchemeList_bytesize_eq x = ()

let signatureSchemeList_parser32 =
  LS.parse32_vlarray 2 2ul 65534 65534ul signatureScheme_serializer signatureScheme_parser32 1 32767 ()

let signatureSchemeList_serializer32 =
  LS.serialize32_vlarray 2 65534 #_ #_ #_ #signatureScheme_serializer signatureScheme_serializer32 1 32767 ()

let signatureSchemeList_size32 =
  [@inline_let] let _ = assert_norm (LP.vldata_vlarray_precond 2 65534 signatureScheme_parser 1 32767 == true) in
  LSZ.size32_vlarray 2 65534 signatureScheme_serializer 1 32767 () 2ul 2ul

let signatureSchemeList_validator =
 LL.validate_vlarray 2 65534 signatureScheme_serializer signatureScheme_validator 1 32767 () 2ul

let signatureSchemeList_jumper =
 LL.jump_vlarray 2 65534 signatureScheme_serializer 1 32767 () 2ul

let _ : squash (signatureSchemeList == LL.vlarray signatureScheme 1 32767) = _ by (FStar.Tactics.trefl ())

let finalize_signatureSchemeList #_ #_ sl pos pos' =
  LL.finalize_vlarray 2 65534 signatureScheme_serializer 1 32767 sl pos pos'
val signatureSchemeList_count (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : HST.Stack U32.t
  (requires (fun h -> LL.valid signatureSchemeList_parser h input pos))
  (ensures (fun h res h' ->
    let x = LL.contents signatureSchemeList_parser h input pos in
    let pos' = LL.get_valid_pos signatureSchemeList_parser h input pos in
    B.modifies B.loc_none h h' /\
    U32.v res == L.length x /\
    U32.v pos' == U32.v pos + 2 + (U32.v res `FStar.Mul.op_Star` 2) /\
    LL.valid_list signatureScheme_parser h input (pos `U32.add` 2ul) pos' /\
    LL.contents_list signatureScheme_parser h input (pos `U32.add` 2ul) pos' == x
  ))
input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t
  -> FStar.HyperStack.ST.Stack FStar.UInt32.t