val maxFragmentLength_jumper:LL.jumper maxFragmentLength_parser
val maxFragmentLength_jumper:LL.jumper maxFragmentLength_parser
let maxFragmentLength_jumper: LL.jumper maxFragmentLength_parser = LL.jump_constant_size maxFragmentLength_parser 1ul ()
module MiTLS.Parsers.MaxFragmentLength

(* 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.Base
module LS = LowParse.SLow.Base
module LSZ = LowParse.SLow.Base
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low.Base
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST


let maxFragmentLength_repr = U8.t
inline_for_extraction let maxFragmentLength_repr_eq (x1 x2: maxFragmentLength_repr) : Tot bool = (x1 = x2)
let known_maxFragmentLength_repr (v:U8.t) : bool = v `maxFragmentLength_repr_eq` 1z || (v `maxFragmentLength_repr_eq` 2z || (v `maxFragmentLength_repr_eq` 3z || (v `maxFragmentLength_repr_eq` 4z || (false))))

type maxFragmentLength =
  | Two_9
  | Two_10
  | Two_11
  | Two_12
  | Unknown_maxFragmentLength of (v:U8.t{not (known_maxFragmentLength_repr v)})

let string_of_maxFragmentLength = function
  | Two_9 -> "two_9"
  | Two_10 -> "two_10"
  | Two_11 -> "two_11"
  | Two_12 -> "two_12"
  | Unknown_maxFragmentLength _ -> "Unknown_maxFragmentLength"

inline_for_extraction noextract let maxFragmentLength_parser_kind = LP.strong_parser_kind 1 1 (Some LP.ParserKindMetadataTotal)

noextract val maxFragmentLength_parser: LP.parser maxFragmentLength_parser_kind maxFragmentLength

noextract val maxFragmentLength_serializer: LP.serializer maxFragmentLength_parser

noextract val maxFragmentLength_bytesize (x:maxFragmentLength) : GTot nat

noextract val maxFragmentLength_bytesize_eq (x:maxFragmentLength) : Lemma (maxFragmentLength_bytesize x == Seq.length (LP.serialize maxFragmentLength_serializer x))

val maxFragmentLength_parser32: LS.parser32 maxFragmentLength_parser

val maxFragmentLength_serializer32: LS.serializer32 maxFragmentLength_serializer

val maxFragmentLength_size32: LSZ.size32 maxFragmentLength_serializer

let maxFragmentLength_validator: LL.validator maxFragmentLength_parser = LL.validate_total_constant_size maxFragmentLength_parser 1uL ()
/
prims.fst.checked LowStar.Buffer.fst.checked LowParse.Spec.Base.fsti.checked LowParse.Spec.AllIntegers.fst.checked LowParse.SLow.Base.fst.checked LowParse.Low.Base.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.MaxFragmentLength.fsti
LowParse.Low.Base.jumper MiTLS.Parsers.MaxFragmentLength.maxFragmentLength_parser
LowParse.Low.Base.jump_constant_size MiTLS.Parsers.MaxFragmentLength.maxFragmentLength_parser_kind MiTLS.Parsers.MaxFragmentLength.maxFragmentLength MiTLS.Parsers.MaxFragmentLength.maxFragmentLength_parser FStar.UInt32.__uint_to_t
let maxFragmentLength_jumper:LL.jumper maxFragmentLength_parser =
  
LL.jump_constant_size maxFragmentLength_parser 1ul ()