ArticleslgStudy

computer science

Frama-C

Frama-C is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Frama-C rather than just read about it. In short: Frama-C is a set of interoperable program analyzers for C programs. The name Frama-C stands for Framework for Modular Analysis of C programs.

Frama-C — main illustration
Frama-C — illustration

Key takeaways

  • Frama-C belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Frama-C to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Frama-C from memory before moving on to harder problems.

Reference excerpt

Frama-C is a set of interoperable program analyzers for C programs. The name Frama-C stands for Framework for Modular Analysis of C programs. Frama-C has been developed by the French Commissariat à l'Énergie Atomique et aux Énergies Alternatives (CEA-List) and Inria. It has also received funding from the Core Infrastructure Initiative. Frama-C, as a static analyzer, inspects programs without executing them. Despite its name, the software is not related to the French project Framasoft.

History and releases The first open-source release of the platform was made in 2008. Major versions are named after chemical elements, and since version 11 (Sodium) the version number has matched the element's atomic number; for example, version 32 is Germanium and version 33 is Arsenic. Release 33.0 (Arsenic) was published on 24 July 2026. Significant changes across releases include:

Eva: the value analysis plug-in became consistently named "Eva" in version 18.0 (Argon, October 2018). E-ACSL: included in the standard distribution from version 15.0 (Phosphorus, May 2017). WP: the legacy WP engine and its native prover output were removed in version 25.0 (Manganese, June 2022), so WP now always goes through Why3; counterexample generation was added in version 29.0 (Copper, June 2024). Graphical interface: a new Electron-based GUI, Ivette, was introduced in version 25.0. In version 33.0 the old GTK-based interface was removed and frama-c-gui now launches the new GUI. Concurrency: the Mthread plug-in, which uses Eva to analyze concurrent C programs, was embedded in Eva in version 31.0 (Gallium, June 2025).

Architecture

Frama-C has a modular plugin architecture comparable to that of Eclipse (software) or GIMP. Frama-C relies on CIL (C Intermediate Language) to generate an abstract syntax tree. The abstract syntax tree supports annotations written in ANSI/ISO C Specification Language (ACSL). Several modules can manipulate the abstract syntax tree to add ANSI/ISO C Specification Language (ACSL) annotations. Among frequently used plugins are:

Eva (evolved value analysis, formerly "Value analysis") – computes a set of possible values for each variable in a program using abstract interpretation techniques; many other plug-ins use its results. Jessie – an older deductive verification plug-in built on the Why 2 platform, which sent proof obligations to automatic or interactive provers. The Why 2 platform is no longer under active development, as its authors' efforts moved to Why3, and the last Frama-C version it is documented as compatible with is Chlorine (version 17). Deductive verification is now mainly done with the WP plug-in. WP (Weakest Precondition) – verifies ACSL properties deductively. It is parameterized by memory model, cooperates with other Frama-C plug-ins such as Eva, and calls external automatic and interactive provers through the Why3 platform; version 33.0 added automatic detection of installed external provers. E-ACSL – (for Executable ACSL) instruments a program to perform runtime verification of properties, possibly in complement with other plugins such as value analysis and WP (e.g. by checking assertions at runtime for the properties that could not be statically verified with the other plugins). Impact analysis – highlights the impacts of a modification in the C source code. Slicing – enables slicing of a program. It enables generation of a smaller new C program that preserves some given properties. Spare code – removes useless code from a C program. Other plugins are:

Dominators – computes dominators and postdominators of statements. From analysis – computes functional dependencies. MetAcsl – a plug-in for expressing, in a compact way, properties that would otherwise need very many ACSL annotations, mainly security properties such as guarded access to sensitive memory locations. Frama-Clang – an experimental C++ front-end for Frama-C based on the Clang compiler.

Features Frama-C can be used for the following purposes:

To understand C code which you have not written. In particular, Frama-C enables one to observe a set of values, slice the program into shorter programs, and navigate in the program. To prove formal properties on the code. Using specifications written in ANSI/ISO C Specification Language enables it to ensure properties of the code for any possible behavior. Frama-C handles floating point numbers. To enforce coding standards or code conventions on C source code, by means of custom plugin(s) To instrument C code against some security flaws

Industrial use Frama-C is aimed at the verification of industrial-size C programs, combining static analysis, deductive verification and testing for safety and security-critical software. It is used for teaching, experimental research and industrial applications, and a 2024 guidebook collects industrial case studies in which it was used to verify safety or security properties. A 2021 overview in Communications of the ACM discusses its use in education and in industrial collaborations. In the avionics domain, a study at the German company ESG formalized the low-level specification of a software function from a DO-178C-compliant project in ACSL and partially verified the source code with Frama-C's WP plug-in, using Alt-Ergo as the automated prover.

Further reading Kosmatov, Nikolai; Prevosto, Virgile; Signoles, Julien, eds. (2024). Guide to Software Verification with Frama-C. Springer. doi:10.1007/978-3-031-55608-1.

See also SPARK (programming language) Framatome — A business with a long-term partnership with Frama-C

References

External links Official website Frama-C discussion list Archived 2008-12-30 at the Wayback Machine Frama-C Bug Tracking System Source repository

Illustrations

Frama-C illustration

Worked examples

Example 1 — a first encounter with Frama-C

Start with the simplest possible case. Write down what Frama-C claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Frama-C before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Frama-C ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Frama-C

In research
Frama-C appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Frama-C in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Frama-C is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal methods tools, Free software programmed in C, Free software programmed in OCaml, so understanding it makes those chapters shorter.
In everyday life
Look for Frama-C outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Frama-C” →

How to study Frama-C in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Frama-C means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Frama-C out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Frama-C in simple terms?

Frama-C is a set of interoperable program analyzers for C programs. The name Frama-C stands for Framework for Modular Analysis of C programs.

Why does Frama-C matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Frama-C?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Frama-C.

Tags

  • Formal methods tools
  • Free software programmed in C
  • Free software programmed in OCaml
  • Linux software
  • Science software that uses GTK
  • Software testing tools
  • Software that uses Cairo (graphics)
  • Software using the GNU Lesser General Public License
  • Static program analysis tools

Keep exploring