package goblint

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type field
type idx
include Printable.S
type t
val equal : t -> t -> bool
val hash : t -> int
val compare : t -> t -> int
val show : t -> string
val pretty : unit -> t -> Goblint_lib.Printable.Pretty.doc
val printXml : 'a BatInnerIO.output -> t -> unit
val name : unit -> string
val to_yojson : t -> Yojson.Safe.t
val tag : t -> int

Unique ID, given by HConsed, for context identification in witness

val arbitrary : unit -> t QCheck.arbitrary
val relift : t -> t
val null_ptr : unit -> t
val str_ptr : unit -> t
val is_null : t -> bool
val get_location : t -> GoblintCil.location
val from_var : GoblintCil.varinfo -> t

Creates an address from variable.

val from_var_offset : (GoblintCil.varinfo * (field, idx) offs) -> t

Creates an address from a variable and offset.

val to_var_offset : t -> (GoblintCil.varinfo * (field, idx) offs) list

Get the offset

val to_var : t -> GoblintCil.varinfo list

Strips the varinfo out of the address representation.

val to_var_may : t -> GoblintCil.varinfo list
val to_var_must : t -> GoblintCil.varinfo list

Strips the varinfo out of the address representation.

val get_type : t -> GoblintCil.typ

Finds the type of the address location.