Module Sptr.DecayMap

type t
val empty : t
val pp : Stdlib.Format.formatter -> t -> unit

Decays the given location into an integer, updating the decay map accordingly. If expose is true, the provenance is marked as exposed, and can be retrieved later with from_exposed. Returns the decayed integer, along with the updated decay map.

Tries finding, for the given integer, the matching provenance in the decay map. If found, it returns that provenance, along with the exposed address for that allocation at offset 0. Otherwise returns None.