package goblint

  1. Overview
  2. Docs
Static analysis framework for C

Install

Dune Dependency

Authors

Maintainers

Sources

goblint-2.5.0.tbz
sha256=452d8491527aea21f2cbb11defcc14ba0daf9fdb6bdb9fc0af73e56eac57b916
sha512=1993cd45c4c7fe124ca6e157f07d17ec50fab5611b270a434ed1b7fb2910aa85a8e6eaaa77dad770430710aafb2f6d676c774dd33942d921f23e2f9854486551

doc/goblint.backtrace/Goblint_backtrace/index.html

Module Goblint_backtraceSource

Backtraces with custom marks.

Mark definition

Sourcetype mark = ..

Extensible type of marks.

Sourceval register_mark_printer : (mark -> string option) -> unit

Register printing function for custom mark. The function should return None for other marks.

Sourceval mark_to_string : mark -> string

Convert mark to string using registered printers, or mark_to_string_default if unhandled.

Sourceval mark_to_string_default : mark -> string

Convert mark to default string.

Mark usage

Sourceval add_mark : exn -> mark -> unit

Add mark to exception.

Sourceval protect : mark:(unit -> mark) -> finally:(unit -> unit) -> (unit -> 'a) -> 'a

Fun.protect with additional ~mark addition to all exceptions.

Sourceval wrap_val : mark:mark -> (unit -> 'a) -> 'a

protect with ~mark value and without ~finally.

Sourceval print_marktrace : out_channel -> exn -> unit

Print trace of marks of an exception.

Used by default for uncaught exceptions.

Sourceval find_marks : exn -> mark list

Find all marks of an exception.

OCaml

Innovation. Community. Security.