let protocolVersion_parser_kind = LP.strong_parser_kind 2 2 (Some LP.ParserKindMetadataTotal)
let protocolVersion_parser_kind =
LP.strong_parser_kind 2 2 (Some LP.ParserKindMetadataTotal)
Parsers.ProtocolVersion.fsti.checked
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
Parsers.ProtocolVersion.fsti
LowParse.Spec.Base.strong_parser_kind FStar.Pervasives.Native.Some LowParse.Spec.Base.parser_kind_metadata_some LowParse.Spec.Base.ParserKindMetadataTotal
module Parsers.ProtocolVersion

(* 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 protocolVersion_repr = U16.t
inline_for_extraction let protocolVersion_repr_eq (x1 x2: protocolVersion_repr) : Tot bool = (x1 = x2)
let known_protocolVersion_repr (v:U16.t) : bool = v `protocolVersion_repr_eq` 768us || (v `protocolVersion_repr_eq` 769us || (v `protocolVersion_repr_eq` 770us || (v `protocolVersion_repr_eq` 771us || (v `protocolVersion_repr_eq` 772us || (false)))))

type protocolVersion =
  | SSL_3p0
  | TLS_1p0
  | TLS_1p1
  | TLS_1p2
  | TLS_1p3
  | Unknown_protocolVersion of (v:U16.t{not (known_protocolVersion_repr v)})

let string_of_protocolVersion = function
  | SSL_3p0 -> "SSL_3p0"
  | TLS_1p0 -> "TLS_1p0"
  | TLS_1p1 -> "TLS_1p1"
  | TLS_1p2 -> "TLS_1p2"
  | TLS_1p3 -> "TLS_1p3"
  | Unknown_protocolVersion _ -> "Unknown_protocolVersion"
val protocolVersion_parser_kind : LowParse.Spec.Base.parser_kind
LowParse.Spec.Base.parser_kind