val timestamp_bytesize (x:timestamp) : GTot nat
val timestamp_bytesize (x:timestamp) : GTot nat
let timestamp_bytesize (x:timestamp) : GTot nat = Seq.length (timestamp_serializer x)
module Zeta.Formats.Aux.Timestamp

(* 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 timestamp' = (U32.t & U32.t)

inline_for_extraction let synth_timestamp (x: timestamp') : timestamp =
  match x with (epoch,counter) -> {
    epoch = epoch;
    counter = counter;
  }

inline_for_extraction let synth_timestamp_recip (x: timestamp) : timestamp' = (x.epoch,x.counter)

let synth_timestamp_recip_inverse () : Lemma (LP.synth_inverse synth_timestamp_recip synth_timestamp) = ()

let synth_timestamp_injective () : Lemma (LP.synth_injective synth_timestamp) =
  LP.synth_inverse_synth_injective synth_timestamp_recip synth_timestamp;
  synth_timestamp_recip_inverse ()

let synth_timestamp_inverse () : Lemma (LP.synth_inverse synth_timestamp synth_timestamp_recip) =
  assert_norm (LP.synth_inverse synth_timestamp synth_timestamp_recip)

let synth_timestamp_recip_injective () : Lemma (LP.synth_injective synth_timestamp_recip) =
  synth_timestamp_recip_inverse ();
  LP.synth_inverse_synth_injective synth_timestamp synth_timestamp_recip

noextract let timestamp'_parser : LP.parser _ timestamp' = (LPI.parse_u32 `LP.nondep_then` LPI.parse_u32)

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

let timestamp_parser =
  synth_timestamp_injective ();
  assert_norm (timestamp_parser_kind == timestamp'_parser_kind);
  timestamp'_parser `LP.parse_synth` synth_timestamp

noextract let timestamp'_serializer : LP.serializer timestamp'_parser = (LPI.serialize_u32 `LP.serialize_nondep_then` LPI.serialize_u32)

let timestamp_serializer =
  [@inline_let] let _ = synth_timestamp_injective () in
  [@inline_let] let _ = synth_timestamp_inverse () in
  [@inline_let] let _ = assert_norm (timestamp_parser_kind == timestamp'_parser_kind) in
  LP.serialize_synth _ synth_timestamp timestamp'_serializer synth_timestamp_recip ()
/
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.Timestamp.fst
x: Zeta.Formats.Aux.Timestamp.timestamp -> Prims.GTot Prims.nat
Zeta.Formats.Aux.Timestamp.timestamp FStar.Seq.Base.length LowParse.Bytes.byte Zeta.Formats.Aux.Timestamp.timestamp_serializer Prims.nat
let timestamp_bytesize (x: timestamp) : GTot nat =
  
Seq.length (timestamp_serializer x)