package p4spectec

  1. Overview
  2. Docs
P4-SpecTec: A mechanization toolchain for the P4 Programming Language

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.2.tar.gz
md5=1a3bc0a385fe1ecf403c019f49aa6de6
sha512=5d20b5821f33e2a3a5419b208606f27c01511994c2b3b1e1cdf4c077056dfd0aa81682af0720e1060ee2bfb0341918fcc4c53159820205a2bc32b725e5c1a714

doc/dynamic/Dynamic/Caches/ValueCache/index.html

Module Caches.ValueCache

module Table : sig ... end
type slot = {
  1. mutable key : ValueEntry.t;
  2. mutable ref : bool;
}
type !'a t = {
  1. table : ('a * int) Table.t;
  2. clock : slot array;
  3. occ : bool array;
  4. capacity : int;
  5. mutable count : int;
  6. mutable hand : int;
  7. mutable fill : int;
  8. mutable touched : int;
}
val create : size:int -> 'a t
val size : 'a t -> int
val empty : 'a t -> unit
val find : 'a t -> ValueEntry.t -> 'a option
val evict : 'a t -> int
val add : 'a t -> ValueEntry.t -> 'a -> unit