package mopsa

  1. Overview
  2. Docs
On This Page
  1. Registration
Legend:
Library
Module
Module type
Parameter
Class
Class type

Programs

This module allows defining new kinds of programs to be analyzed by Mopsa. A program encapsulates the static information present in the source files that may be needed during the analysis, such as the list of functions variables, etc.

type prog_kind = ..

Extensible type of program kinds

type program = {
  1. prog_kind : prog_kind;
    (*

    kind of the program

    *)
  2. prog_range : Mopsa_utils.Location.range;
    (*

    program location

    *)
}

Programs

val compare_program : program -> program -> int

Total order between programs

val pp_program : Format.formatter -> program -> unit

Pretty-printer for programs

Registration

val register_program : program Mopsa_utils.TypeExt.info -> unit

register_program info registers a new program kind by registering its comparison function info.compare and pretty-printer info.print

val register_program_compare : program Mopsa_utils.TypeExt.compare -> unit

Register a comparison function between programs

val register_program_pp : program Mopsa_utils.TypeExt.print -> unit

Register a pretty-printer for programs

OCaml

Innovation. Community. Security.