val stamped_record'_jumper:LL.jumper stamped_record'_parser
val stamped_record'_jumper:LL.jumper stamped_record'_parser
let stamped_record'_jumper : LL.jumper stamped_record'_parser = ((record_jumper `LL.jump_nondep_then` timestamp_jumper) `LL.jump_nondep_then` thread_id_jumper)
module Zeta.Formats.Aux.Stamped_record

(* 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 stamped_record' = ((record & timestamp) & thread_id)

inline_for_extraction let synth_stamped_record (x: stamped_record') : stamped_record =
  match x with ((sr_record,sr_timestamp),sr_thread_id) -> {
    sr_record = sr_record;
    sr_timestamp = sr_timestamp;
    sr_thread_id = sr_thread_id;
  }

inline_for_extraction let synth_stamped_record_recip (x: stamped_record) : stamped_record' = ((x.sr_record,x.sr_timestamp),x.sr_thread_id)

let synth_stamped_record_recip_inverse () : Lemma (LP.synth_inverse synth_stamped_record_recip synth_stamped_record) = ()

let synth_stamped_record_injective () : Lemma (LP.synth_injective synth_stamped_record) =
  LP.synth_inverse_synth_injective synth_stamped_record_recip synth_stamped_record;
  synth_stamped_record_recip_inverse ()

let synth_stamped_record_inverse () : Lemma (LP.synth_inverse synth_stamped_record synth_stamped_record_recip) =
  assert_norm (LP.synth_inverse synth_stamped_record synth_stamped_record_recip)

let synth_stamped_record_recip_injective () : Lemma (LP.synth_injective synth_stamped_record_recip) =
  synth_stamped_record_recip_inverse ();
  LP.synth_inverse_synth_injective synth_stamped_record synth_stamped_record_recip

noextract let stamped_record'_parser : LP.parser _ stamped_record' = ((record_parser `LP.nondep_then` timestamp_parser) `LP.nondep_then` thread_id_parser)

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

let stamped_record_parser =
  synth_stamped_record_injective ();
  assert_norm (stamped_record_parser_kind == stamped_record'_parser_kind);
  stamped_record'_parser `LP.parse_synth` synth_stamped_record

noextract let stamped_record'_serializer : LP.serializer stamped_record'_parser = ((record_serializer `LP.serialize_nondep_then` timestamp_serializer) `LP.serialize_nondep_then` thread_id_serializer)

let stamped_record_serializer =
  [@inline_let] let _ = synth_stamped_record_injective () in
  [@inline_let] let _ = synth_stamped_record_inverse () in
  [@inline_let] let _ = assert_norm (stamped_record_parser_kind == stamped_record'_parser_kind) in
  LP.serialize_synth _ synth_stamped_record stamped_record'_serializer synth_stamped_record_recip ()

let stamped_record_bytesize (x:stamped_record) : GTot nat = Seq.length (stamped_record_serializer x)

let stamped_record_bytesize_eq x = ()

inline_for_extraction let stamped_record'_size32 : LSZ.size32 stamped_record'_serializer = ((record_size32 `LSZ.size32_nondep_then` timestamp_size32) `LSZ.size32_nondep_then` thread_id_size32)

let stamped_record_size32 =
  [@inline_let] let _ = synth_stamped_record_injective () in
  [@inline_let] let _ = synth_stamped_record_inverse () in
  [@inline_let] let _ = assert_norm (stamped_record_parser_kind == stamped_record'_parser_kind) in
  LSZ.size32_synth _ synth_stamped_record _ stamped_record'_size32 synth_stamped_record_recip (fun x -> synth_stamped_record_recip x) ()

inline_for_extraction let stamped_record'_validator : LL.validator stamped_record'_parser = ((record_validator `LL.validate_nondep_then` timestamp_validator) `LL.validate_nondep_then` thread_id_validator)

let stamped_record_validator =
  [@inline_let] let _ = synth_stamped_record_injective () in
  [@inline_let] let _ = assert_norm (stamped_record_parser_kind == stamped_record'_parser_kind) in
  LL.validate_synth stamped_record'_validator synth_stamped_record ()
/
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.Stamped_record.fst
LowParse.Low.Base.jumper Zeta.Formats.Aux.Stamped_record.stamped_record'_parser
LowParse.Low.Combinators.jump_nondep_then LowParse.Spec.Combinators.and_then_kind Zeta.Formats.Aux.Record.record_parser_kind Zeta.Formats.Aux.Timestamp.timestamp_parser_kind FStar.Pervasives.Native.tuple2 Zeta.Formats.Aux.Record.record Zeta.Formats.Aux.Timestamp.timestamp LowParse.Spec.Combinators.nondep_then Zeta.Formats.Aux.Record.record_parser Zeta.Formats.Aux.Timestamp.timestamp_parser Zeta.Formats.Aux.Record.record_jumper Zeta.Formats.Aux.Timestamp.timestamp_jumper Zeta.Formats.Aux.Thread_id.thread_id_parser_kind Zeta.Formats.Aux.Thread_id.thread_id Zeta.Formats.Aux.Thread_id.thread_id_parser Zeta.Formats.Aux.Thread_id.thread_id_jumper
let stamped_record'_jumper:LL.jumper stamped_record'_parser =
  
((record_jumper `LL.jump_nondep_then` timestamp_jumper) `LL.jump_nondep_then` thread_id_jumper)