package codex

  1. Overview
  2. Docs
The Codex library for building static analysers based on abstract interpretation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0-rc4.tar.gz
md5=bc7266a140c6886add673ede90e335d3
sha512=8da42c0ff2c1098c5f9cb2b5b43b306faf7ac93b8f5ae00c176918cee761f249ff45b29309f31a05bbcf6312304f86a0d5a000eb3f1094d3d3c2b9b4c7f5c386

doc/codex.types/Types/Parse_ctypes/index.html

Module Types.Parse_ctypesSource

This file handles translation and desugaring between the types concrete syntax (defined in Type_parser) to the abstract syntax (defined in TypedC).

Sourceval parse_file : infer_spec:bool -> string -> unit

Parse a file and fills the definitions using the TypedC imperative interface.

Sourceval type_of_string : string -> TypedC.typ

Parses a string as a Ctype.

Sourceval init : data_model:[< `ILP32 | `LLP64 | `LP64 ] -> unit

Initialize the library with base type, which require setting up a data model, i.e. the size of int, long, pointers etc in bytes. See https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models.

Must be call before we can parse types containing sizes that depend on a data model, like short/int/long/long long and pointers.