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.domains/Domains/Log/Log_Domain/argument-1-Log/index.html

Parameter Log_Domain.Log

val error : 'a Tracelog.log -> unit

Printing from most to least important. info and debug levels are not printed by default.

val warning : 'a Tracelog.log -> unit
val notice : 'a Tracelog.log -> unit
val info : 'a Tracelog.log -> unit
val debug : 'a Tracelog.log -> unit
val fatal : 'a Tracelog.log -> 'b

Classic error messages. Fatal will raise the Fatal exception.

val not_yet_implemented : 'a Tracelog.log -> unit
val trace : 'a Tracelog.log -> ?loc:Tracelog.location -> ?bintrace:'c Syntax_tree.Location_identifier.t -> ?pp_ret:(Format.formatter -> 'b -> unit) -> (unit -> 'b) -> 'b

trace log pp_ret f first display log, then executes f and prints its return value using pp_ret.

val fatal_handler : ('a -> 'b) -> 'a -> 'b

fatal_handler Fatal handler, will properly collect the backtrace for fatal and print it. It also collects other uncaught exception and returns an error message.