package mopsa
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=37966e98ffeebcedc09bd6e9b2b81f69
sha512=40d4d826c25f680766c07eccbabdf5e8a4fa023016e8a164e4e4f6b3781c8484dc4df437055721dfd19b9db8fb7fe3b61236c4833186d346fc7204a68d01eaaa
Description
MOPSA is a generic framework for building sound static analyzers based on Abstract Interpretation. It features a modular architecture to support different kinds of languages, iterators, and abstract domains. For the moment, MOPSA can analyze programs written in a subset of C and Python. It reports run-time errors on C programs and uncaught exceptions on Python programs.
Added to opam-repository:
README
MOPSA
MOPSA stands for Modular and Open Platform for Static Analysis. It aims at easing the development and use of static analyzers.
More specifically, MOPSA is a generic framework for building sound static analyzer based on the theory of abstract interpretation. MOPSA is independent of language and abstraction choices. Developers are free to add arbitrary abstractions (numeric, pointer, memory, etc.) and syntax iterators for new languages. Mopsa encourages the development of independent abstractions which can cooperate or be combined to improve precision.
Mopsa currently support the analysis of Python, C and Python+C programs. It reports run-time errors on C programs and uncaught exceptions on Python programs. Our benchmarks provide an illustrative overview of what Mopsa can currently analyze. All analyses currently provided are flow and context-sensitive (i.e, control-flow operators are taken into account by the analysis, and functions are analyzed by virtual inlining). The C analysis is actively developed and maintained. The Python and Python+C analyses work on real-world examples, but are not actively developed.
A user manual is available. Provided sphinx is installed (through pip install sphinx sphinx_rtd_theme), you can build this manual locally using make -C doc/user-manual/ html.
License
Unless explicitly specified, the components of the MOPSA software are distributed under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See the accompanying COPYING file, or http://www.gnu.org/licenses/.
The documentation and example files of the MOPSA software are distributed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.
Installation
You can use OCaml's package manager (opam), to resolve dependencies and install Mopsa. See here on how to install opam.
LANG=C opam pin add mopsa --with-doc --with-test .You can check the documentation to build from source.
SV-Comp
For the Software-Verification Competition, you also need:
sudo dpkg --add-architecture i386 && sudo apt install libc6-dev-i386Multilanguage (Python+C) analysis
The multilanguage analysis requires Python version 3.8, as well as development headers. You can use our Docker images if needed.
Linking against the MOPSA library
MOPSA can also be used as a library to develop further tools.
It is installed as a mopsa ocamlfind package by make install or opam. It contains several sub-packages, including various utilities (mopsa.mopsa_utils) and front-ends (mopsa.mopsa_c_parser, mopsa.mopsa_c_stubs_parser, mopsa.mopsa_py_parser, mopsa.mopsa_universal_parser, depending on which languages are enabled) and the toplevel mopsa.mopsa_analyzer package containing all the analysis logic and support for all compiled-in languages.
Consider the simple program test.ml that simulates the effect of the mopsa binary:
let _ = Mopsa_analyzer.Framework.Runner.run()Add the following dune file in the same directory:
(executable
(name test)
(libraries mopsa.mopsa_analyzer))Add also the file dune-project:
(lang dune 3.7)Then, the project can be compiled with:
dune buildAdditional resources
Dependencies (10)
-
qcheck-core
>= "0.26" -
arg-complete
>= "0.2.1" -
zarith
>= "1.10" -
yojson
>= "1.6.0" - mlgmpidl
-
menhir
>= "20200525" -
apron
>= "v0.9.15" - ocamlfind
-
dune
>= "3.7" & < "3.22" -
ocaml
>= "4.13.0"
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies (1)
Used by
None
Conflicts
None
Build status
Results of building mopsa with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.2 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure