package mopsa
MOPSA: A Modular and Open Platform for Static Analysis using Abstract Interpretation
Install
Dune Dependency
Authors
Maintainers
Sources
mopsa-analyzer-v1.1.tar.gz
md5=fdee20e988343751de440b4f6b67c0f4
sha512=f5cbf1328785d3f5ce40155dada2d95e5de5cce4f084ea30cfb04d1ab10cc9403a26cfb3fa55d0f9da72244482130fdb89c286a9aed0d640bba46b7c00e09500
doc/ast/Ast/Typ/index.html
Module Ast.Typ
Source
Types
This modules allows extending Mopsa with new types. This is done by extending the type typ
with new variants. For example
type typ += T_int
extends Mopsa types with a new integer type. Registration is performed with
let () = register_typ {
compare = (fun next -> next);
print = (fun next -> function
| T_int -> Format.pp_print_string fmt "int"
| t -> next fmt t
);
}
Note that is this simple example where the type doesn't have an inner structure no comparison function is required as Stdlib.compare
is sufficient to provide a total order.
Extensible types
Registration
Register a new type
Register a new type comparison
Register a new type pretty-printer
Common types
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page