package frama-c

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Sigma.ChunkSource

Uniform access to chunks features.

Sourcetype t = chunk
Sourceval self : string

Chunk type name for datatype registration.

Sourceval hash : t -> int
Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval pretty : Stdlib.Format.formatter -> t -> unit
Sourceval tau_of_chunk : t -> F.tau

The type of data hold in a chunk.

Sourceval basename_of_chunk : t -> string

Used when generating fresh variables for a chunk.

Sourceval is_init : t -> bool

Whether the chunk tracks memory initialization (used for filtering).

Sourceval is_primary : t -> bool

Used to sort memory chunk parameters in compiled ACSL symbols.

Non-primary chunk parameters come first, followed by primary ones, followed by logical parameters.

Typical primary chunks are memory chunks with a single location, like hoare of ref variables in MemVar or singleton regions in MemRegion.

Sourceval is_framed : t -> bool

Whether the chunk is local to a function call.

Means the chunk is separated from anyother call side-effects. If true, entails that a function assigning everything can not modify the chunk. Only used for optimisation, it would be safe to always return false.

OCaml

Innovation. Community. Security.