# Frama-C

> Open-source extensible platform for sound static analysis, deductive verification, and runtime verification of C code.

Frama-C is an open-source, extensible and collaborative platform for source-code analysis of C software, developed under the Frama-C project and CEA-linked community. It bundles analyzers as plug-ins that share a kernel and a common specification language, ACSL. The GitHub snapshot repository holds release snapshots, while the official repository has moved to the project's self-hosted GitLab.

## What It Is

Frama-C combines several program analysis techniques in one platform. A kernel provides core features such as a normalized AST for C programs, and plug-ins build on each other's results. The project states that most of its analyzers are sound and are designed to guarantee the absence of certain bugs rather than find them heuristically. Users run it from the command line (`frama-c`) or the graphical interface (`frama-c-gui`).

## Main Analyses

- **Eva** uses abstract interpretation to prove the absence of runtime errors caused by C undefined behaviors, such as invalid memory accesses, uninitialized reads, integer overflows, and division by zero. It infers value ranges for variables and reports alarms in the GUI.
- **WP** performs deductive verification using weakest precondition calculus. Users write ACSL function contracts, loop invariants, and assertions; WP generates verification conditions and discharges them with SMT solvers such as Alt-Ergo, CVC5, or Z3, with interactive proof options when automation fails.
- **E-ACSL** translates executable ACSL annotations into C code to check them at runtime, and can help explain failed WP proofs or monitor alarms after Eva.
- Other plug-ins cover slicing, LTL property checking (Aoraï), and code exploration and dependency analysis (From, Impact, Metrics, Occurrence, Scope).

## Setup Path

The README names OPAM, the OCaml package manager, as the preferred installation method. Frama-C is developed mainly on Linux, often tested on macOS via Homebrew, and occasionally tested on Windows via WSL. For larger projects, the README recommends parsing sources into a saved file with preprocessor arguments, then loading it for analyses or the GUI.

## Current Status

The README says official releases starting from Frama-C 21 are no longer updated on GitHub, and that the official repository, nightly snapshots, and issue tracker are on the project's GitLab. The homepage news lists a Frama-C 34.0 beta (Selenium).

## Features
- Plug-in based C analysis platform with shared kernel
- Eva abstract-interpretation runtime error analysis
- WP deductive verification with ACSL contracts
- E-ACSL runtime assertion checking
- Program slicing
- LTL property verification (Aoraï)
- Code exploration and dependency analysis plug-ins
- Command-line and graphical interface
- SMT solver integration for proof automation

## Integrations
OPAM, Alt-Ergo, CVC5, Z3

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, CLI

## Pricing
Open Source

## Links
- Website: http://frama-c.com
- Documentation: https://frama-c.com/html/documentation.html
- Repository: https://github.com/Frama-C/Frama-C-snapshot
- EveryDev.ai: https://www.everydev.ai/tools/frama-c
