val ticketContents12_bytesize (x:ticketContents12) : GTot nat
val ticketContents12_bytesize (x:ticketContents12) : GTot nat
let ticketContents12_bytesize (x:ticketContents12) : GTot nat = Seq.length (ticketContents12_serializer x)
module MiTLS.Parsers.TicketContents12

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

(* Type of field master_secret*)
open MiTLS.Parsers.TicketContents12_master_secret

type ticketContents12' = ((protocolVersion & cipherSuite) & (boolean & ticketContents12_master_secret))

inline_for_extraction let synth_ticketContents12 (x: ticketContents12') : ticketContents12 =
  match x with ((pv,cs),(ems,master_secret)) -> {
    pv = pv;
    cs = cs;
    ems = ems;
    master_secret = master_secret;
  }

inline_for_extraction let synth_ticketContents12_recip (x: ticketContents12) : ticketContents12' = ((x.pv,x.cs),(x.ems,x.master_secret))

let synth_ticketContents12_recip_inverse () : Lemma (LP.synth_inverse synth_ticketContents12_recip synth_ticketContents12) = ()

let synth_ticketContents12_injective () : Lemma (LP.synth_injective synth_ticketContents12) =
  LP.synth_inverse_synth_injective synth_ticketContents12_recip synth_ticketContents12;
  synth_ticketContents12_recip_inverse ()

let synth_ticketContents12_inverse () : Lemma (LP.synth_inverse synth_ticketContents12 synth_ticketContents12_recip) =
  assert_norm (LP.synth_inverse synth_ticketContents12 synth_ticketContents12_recip)

let synth_ticketContents12_recip_injective () : Lemma (LP.synth_injective synth_ticketContents12_recip) =
  synth_ticketContents12_recip_inverse ();
  LP.synth_inverse_synth_injective synth_ticketContents12 synth_ticketContents12_recip

noextract let ticketContents12'_parser : LP.parser _ ticketContents12' = ((protocolVersion_parser `LP.nondep_then` cipherSuite_parser) `LP.nondep_then` (boolean_parser `LP.nondep_then` ticketContents12_master_secret_parser))

noextract let ticketContents12'_parser_kind = LP.get_parser_kind ticketContents12'_parser

let ticketContents12_parser =
  synth_ticketContents12_injective ();
  assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind);
  ticketContents12'_parser `LP.parse_synth` synth_ticketContents12

noextract let ticketContents12'_serializer : LP.serializer ticketContents12'_parser = ((protocolVersion_serializer `LP.serialize_nondep_then` cipherSuite_serializer) `LP.serialize_nondep_then` (boolean_serializer `LP.serialize_nondep_then` ticketContents12_master_secret_serializer))

let ticketContents12_serializer =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = synth_ticketContents12_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LP.serialize_synth _ synth_ticketContents12 ticketContents12'_serializer synth_ticketContents12_recip ()
/
prims.fst.checked MiTLS.Parsers.TicketContents12_master_secret.fsti.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.Native.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.TicketContents12.fst
x: MiTLS.Parsers.TicketContents12.ticketContents12 -> Prims.GTot Prims.nat
MiTLS.Parsers.TicketContents12.ticketContents12 FStar.Seq.Base.length LowParse.Bytes.byte MiTLS.Parsers.TicketContents12.ticketContents12_serializer Prims.nat
let ticketContents12_bytesize (x: ticketContents12) : GTot nat =
  
Seq.length (ticketContents12_serializer x)