val responderID_length (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : HST.Stack U32.t
  (requires (fun h -> LL.valid responderID_parser h input pos))
  (ensures (fun h res h' ->
    let x = LL.contents responderID_parser h input pos in
    B.modifies B.loc_none h h' /\
    U32.v pos + 2 + U32.v res == U32.v (LL.get_valid_pos responderID_parser h input pos) /\
    res == BY.len x /\
    LL.bytes_of_slice_from_to h input (pos `U32.add` 2ul) ((pos `U32.add` 2ul) `U32.add` res) == BY.reveal x
  ))
val responderID_length (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : HST.Stack U32.t
  (requires (fun h -> LL.valid responderID_parser h input pos))
  (ensures (fun h res h' ->
    let x = LL.contents responderID_parser h input pos in
    B.modifies B.loc_none h h' /\
    U32.v pos + 2 + U32.v res == U32.v (LL.get_valid_pos responderID_parser h input pos) /\
    res == BY.len x /\
    LL.bytes_of_slice_from_to h input (pos `U32.add` 2ul) ((pos `U32.add` 2ul) `U32.add` res) == BY.reveal x
  ))
let responderID_length #_ #_ input pos =
  [@inline_let] let _ = assert_norm (responderID == LP.parse_bounded_vlbytes_t 1 65535) in
  LL.bounded_vlbytes_payload_length 1 65535 input pos
module MiTLS.Parsers.ResponderID

(* 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"

noextract let responderID_parser = LP.parse_bounded_vlbytes 1 65535

noextract let responderID_serializer = LP.serialize_bounded_vlbytes 1 65535

let responderID_bytesize (x:responderID) : GTot nat = Seq.length (responderID_serializer x)

let responderID_bytesize_eq x = ()

let responderID_parser32 = LS.parse32_bounded_vlbytes 1 1ul 65535 65535ul

let responderID_serializer32 = LS.serialize32_bounded_vlbytes 1 65535

let responderID_size32 = LSZ.size32_bounded_vlbytes 1 65535

let responderID_validator = LL.validate_bounded_vlbytes 1 65535

let responderID_jumper = LL.jump_bounded_vlbytes 1 65535

let responderID_bytesize_eqn x = LP.length_serialize_bounded_vlbytes 1 65535 x
/
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.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
MiTLS.Parsers.ResponderID.fst
input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t
  -> FStar.HyperStack.ST.Stack FStar.UInt32.t
LowParse.Slice.srel LowParse.Bytes.byte LowParse.Slice.slice FStar.UInt32.t LowParse.Low.Bytes.bounded_vlbytes_payload_length Prims.unit FStar.Pervasives.assert_norm Prims.eq2 MiTLS.Parsers.ResponderID.responderID LowParse.Spec.Bytes.parse_bounded_vlbytes_t
let responderID_length #_ #_ input pos =
  
[@@ inline_let ]let _ = assert_norm (responderID == LP.parse_bounded_vlbytes_t 1 65535) in
LL.bounded_vlbytes_payload_length 1 65535 input pos