val accessor_evictb_payload_evictb_s : LL.accessor gaccessor_evictb_payload_evictb_s
val accessor_evictb_payload_evictb_s : LL.accessor gaccessor_evictb_payload_evictb_s
let accessor_evictb_payload_evictb_s = LL.accessor_ext (LL.accessor_compose accessor_evictb_payload_evictb_payload' accessor'_evictb_payload_evictb_s ()) clens_evictb_payload_evictb_s ()
module Zeta.Formats.Aux.Evictb_payload

(* 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 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 evictb_payload' = (slot_id & timestamp)

inline_for_extraction let synth_evictb_payload (x: evictb_payload') : evictb_payload =
  match x with (evictb_s,evictb_t) -> {
    evictb_s = evictb_s;
    evictb_t = evictb_t;
  }

inline_for_extraction let synth_evictb_payload_recip (x: evictb_payload) : evictb_payload' = (x.evictb_s,x.evictb_t)

let synth_evictb_payload_recip_inverse () : Lemma (LP.synth_inverse synth_evictb_payload_recip synth_evictb_payload) = ()

let synth_evictb_payload_injective () : Lemma (LP.synth_injective synth_evictb_payload) =
  LP.synth_inverse_synth_injective synth_evictb_payload_recip synth_evictb_payload;
  synth_evictb_payload_recip_inverse ()

let synth_evictb_payload_inverse () : Lemma (LP.synth_inverse synth_evictb_payload synth_evictb_payload_recip) =
  assert_norm (LP.synth_inverse synth_evictb_payload synth_evictb_payload_recip)

let synth_evictb_payload_recip_injective () : Lemma (LP.synth_injective synth_evictb_payload_recip) =
  synth_evictb_payload_recip_inverse ();
  LP.synth_inverse_synth_injective synth_evictb_payload synth_evictb_payload_recip

noextract let evictb_payload'_parser : LP.parser _ evictb_payload' = (slot_id_parser `LP.nondep_then` timestamp_parser)

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

let evictb_payload_parser =
  synth_evictb_payload_injective ();
  assert_norm (evictb_payload_parser_kind == evictb_payload'_parser_kind);
  evictb_payload'_parser `LP.parse_synth` synth_evictb_payload

noextract let evictb_payload'_serializer : LP.serializer evictb_payload'_parser = (slot_id_serializer `LP.serialize_nondep_then` timestamp_serializer)

let evictb_payload_serializer =
  [@inline_let] let _ = synth_evictb_payload_injective () in
  [@inline_let] let _ = synth_evictb_payload_inverse () in
  [@inline_let] let _ = assert_norm (evictb_payload_parser_kind == evictb_payload'_parser_kind) in
  LP.serialize_synth _ synth_evictb_payload evictb_payload'_serializer synth_evictb_payload_recip ()

let evictb_payload_bytesize (x:evictb_payload) : GTot nat = Seq.length (evictb_payload_serializer x)

let evictb_payload_bytesize_eq x = ()

inline_for_extraction let evictb_payload'_size32 : LSZ.size32 evictb_payload'_serializer = (slot_id_size32 `LSZ.size32_nondep_then` timestamp_size32)

let evictb_payload_size32 =
  [@inline_let] let _ = synth_evictb_payload_injective () in
  [@inline_let] let _ = synth_evictb_payload_inverse () in
  [@inline_let] let _ = assert_norm (evictb_payload_parser_kind == evictb_payload'_parser_kind) in
  LSZ.size32_synth _ synth_evictb_payload _ evictb_payload'_size32 synth_evictb_payload_recip (fun x -> synth_evictb_payload_recip x) ()

inline_for_extraction let evictb_payload'_reader : LL.leaf_reader evictb_payload'_parser = (LL.read_nondep_then slot_id_jumper slot_id_reader timestamp_reader)

let evictb_payload_reader =
  [@inline_let] let _ = synth_evictb_payload_injective () in
  [@inline_let] let _ = assert_norm (evictb_payload_parser_kind == evictb_payload'_parser_kind) in
  LL.read_synth _ synth_evictb_payload (fun x -> synth_evictb_payload x) evictb_payload'_reader ()

inline_for_extraction let evictb_payload'_lserializer : LL.serializer32 evictb_payload'_serializer = (slot_id_lserializer `LL.serialize32_nondep_then` timestamp_lserializer)

let evictb_payload_lserializer =
  [@inline_let] let _ = synth_evictb_payload_injective () in
  [@inline_let] let _ = synth_evictb_payload_inverse () in
  [@inline_let] let _ = assert_norm (evictb_payload_parser_kind == evictb_payload'_parser_kind) in
  LL.serialize32_synth evictb_payload'_lserializer synth_evictb_payload synth_evictb_payload_recip (fun x -> synth_evictb_payload_recip x) ()

let evictb_payload_bytesize_eqn x =
  [@inline_let] let _ = synth_evictb_payload_injective () in
  [@inline_let] let _ = synth_evictb_payload_inverse () in
  [@inline_let] let _ = assert_norm (evictb_payload_parser_kind == evictb_payload'_parser_kind) in
  LP.serialize_synth_eq _ synth_evictb_payload evictb_payload'_serializer synth_evictb_payload_recip () x;
LP.length_serialize_nondep_then slot_id_serializer timestamp_serializer x.evictb_s x.evictb_t;
  (slot_id_bytesize_eq (x.evictb_s));
  (timestamp_bytesize_eq (x.evictb_t));
  assert(evictb_payload_bytesize x == Seq.length (LP.serialize slot_id_serializer x.evictb_s) + Seq.length (LP.serialize timestamp_serializer x.evictb_t))

let gaccessor'_evictb_payload_evictb_s : LL.gaccessor evictb_payload'_parser slot_id_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_id evictb_payload'_parser))

let gaccessor'_evictb_payload_evictb_t : LL.gaccessor evictb_payload'_parser timestamp_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_id evictb_payload'_parser))

inline_for_extraction noextract let accessor'_evictb_payload_evictb_s : LL.accessor gaccessor'_evictb_payload_evictb_s = (LL.accessor_then_fst (LL.accessor_id evictb_payload'_parser))

inline_for_extraction noextract let accessor'_evictb_payload_evictb_t : LL.accessor gaccessor'_evictb_payload_evictb_t = (LL.accessor_then_snd (LL.accessor_id evictb_payload'_parser) slot_id_jumper)

noextract let clens_evictb_payload_evictb_payload' : LL.clens evictb_payload evictb_payload' = synth_evictb_payload_recip_inverse (); synth_evictb_payload_recip_injective (); LL.clens_synth synth_evictb_payload_recip synth_evictb_payload

let gaccessor_evictb_payload_evictb_payload' : LL.gaccessor evictb_payload_parser evictb_payload'_parser clens_evictb_payload_evictb_payload' = synth_evictb_payload_inverse (); synth_evictb_payload_injective (); synth_evictb_payload_recip_inverse (); LL.gaccessor_synth evictb_payload'_parser synth_evictb_payload synth_evictb_payload_recip ()

inline_for_extraction noextract let accessor_evictb_payload_evictb_payload' : LL.accessor gaccessor_evictb_payload_evictb_payload' = synth_evictb_payload_inverse (); synth_evictb_payload_injective (); synth_evictb_payload_recip_inverse (); LL.accessor_synth evictb_payload'_parser synth_evictb_payload synth_evictb_payload_recip ()

let gaccessor_evictb_payload_evictb_s = LL.gaccessor_ext (gaccessor_evictb_payload_evictb_payload' `LL.gaccessor_compose` gaccessor'_evictb_payload_evictb_s) clens_evictb_payload_evictb_s ()
/
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.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
Zeta.Formats.Aux.Evictb_payload.fst
LowParse.Low.Base.accessor Zeta.Formats.Aux.Evictb_payload.gaccessor_evictb_payload_evictb_s
LowParse.Low.Base.accessor_ext Zeta.Formats.Aux.Evictb_payload.evictb_payload_parser_kind Zeta.Formats.Aux.Evictb_payload.evictb_payload Zeta.Formats.Aux.Evictb_payload.evictb_payload_parser Zeta.Formats.Aux.Slot_id.slot_id_parser_kind Zeta.Formats.Aux.Slot_id.slot_id Zeta.Formats.Aux.Slot_id.slot_id_parser LowParse.Low.Base.Spec.clens_compose Zeta.Formats.Aux.Evictb_payload.evictb_payload' Zeta.Formats.Aux.Evictb_payload.clens_evictb_payload_evictb_payload' FStar.Pervasives.Native.tuple2 Zeta.Formats.Aux.Timestamp.timestamp LowParse.Low.Base.Spec.clens_id LowParse.Low.Combinators.clens_fst LowParse.Low.Base.Spec.gaccessor_compose LowParse.Spec.Combinators.and_then_kind Zeta.Formats.Aux.Timestamp.timestamp_parser_kind Zeta.Formats.Aux.Evictb_payload.evictb_payload'_parser Zeta.Formats.Aux.Evictb_payload.gaccessor_evictb_payload_evictb_payload' Zeta.Formats.Aux.Evictb_payload.gaccessor'_evictb_payload_evictb_s LowParse.Low.Base.accessor_compose Zeta.Formats.Aux.Evictb_payload.accessor_evictb_payload_evictb_payload' Zeta.Formats.Aux.Evictb_payload.accessor'_evictb_payload_evictb_s Zeta.Formats.Aux.Evictb_payload.clens_evictb_payload_evictb_s
let accessor_evictb_payload_evictb_s =
  
LL.accessor_ext (LL.accessor_compose accessor_evictb_payload_evictb_payload'
      accessor'_evictb_payload_evictb_s
      ())
  clens_evictb_payload_evictb_s
  ()