Questions tagged [frama-c]

Frama-C is an Open Source suite of tools dedicated to the analysis of C source code.

Frama-C offers ready-to-use analyses for C programs: call graph, value analysis, functional dependencies, Program Dependence Graph, runtime monitoring, etc. It also allows the verification of functional properties, temporal logic, and much more. Results can be expressed in plain text, in SARIF, or in Frama-C's graphical interface.

Each analysis is implemented as a plug-in, and plug-ins inside the platform can use the results of one another. Frama-C is Open Source and extensible: new analyses can be implemented in OCaml as additional plug-ins that take advantage of existing ones. They communicate using the ACSL specification language, which also enables describing what the program is supposed to do.

Most provided analyses in Frama-C are sound: used within a delimited perimeter, all the behaviors that can happen at run-time are included in the behaviors statically predicted by Frama-C. Notwithstanding the possibility of bugs, plug-ins must be used as documented for the property to hold. This makes it possible to use Frama-C for the formal verification of C programs.

447 questions
0
votes
1 answer

errors while installing frama-c in cygwin

I am trying to install frama-c in cygwin and get the following errors but I can't interpret them. Can you help me interpreting them or give me a link to where I get the information? Preparing Wp-Coq Sources Uncaught exception: Util.UserError("_",…
0
votes
1 answer

Forward slicing tool for the C language

I am looking for a forward slicing tool for the C language. When I searched in Google, I didn't find any result. I would have liked to access the Wisconsin Program-Slicing Tool Version 1.1, but this tool wasn't distributed. Could any other tool…
0
votes
1 answer

Undeclared variables in sliced program

When using the program slicer of Frama-C version Oxygen, I have the problem that the resulting slice uses undeclared variables. I searched for existing postings to this topic before and found…
0
votes
1 answer

Dataflow graphs

Is there a frama-c plugin to output interprocedural data flow / points-to graphs? I understand -pdg from the slicer plugin will include this information, but wondering if I can get it separately.
glyph
  • 1
-1
votes
1 answer

Error with "\226\128\147" when running Frama-C command

I am getting this error when I try to run a C program using Frama-C. How to fix this error? $ frama-c –wp 2.c [kernel] Parsing FRAMAC_SHARE/libc/_fc_builtin_for_normalisation.i (no preprocessing) [kernel] user error: source file "\226\128\147wp"…
-1
votes
1 answer

Timeout during the verification of two array addition

I am trying to verify the addition of two 2d arrays but I constantly take a timeout error regardless of the solver that I use. The code that I am trying to verify is the following: typedef struct{ float mem[3]; }BaseMatrix3x1; /*@ requires…
Eldrad
  • 97
  • 4
-1
votes
1 answer

Prove Length function to count char array element number

I'm trying to prove a function like strlen in C, but frama-c don't prove the post condition and the loop variant len clause. I can't understand why! What I've tried: /*@ axiomatic elementNumber_axioms { logic unsigned…
Francesco Bonizzi
  • 5,142
  • 6
  • 49
  • 88
-1
votes
1 answer

Warn error in Ocaml?

When executing code written here with the command frama-c -load- script cfg_print.ml test.c (cfg_print.ml is the name of the file on my system containg the Ocaml code and test.c is the file containing c code) , I get the following error: [kernel]…
kbiplav
  • 63
  • 8
-1
votes
1 answer

About requirements of array in frama-c

When writing ACSL of function in frama-c, I want the array of global variables to satisfy a requirement, for example: int a[5]; /*@requires \forall int i; 0 <= i <= 4 ==> a[i] > 0; */ void f() { do something with a...; } I want all the…
-1
votes
1 answer

Accessing the AST when using Frama-C

I want to access the Abstract Syntax Tree (AST) created by the Frama-C tool. Is there a plug-in or any other support to access the AST in Frama-C?
-2
votes
1 answer

unbound value with the out of Format.fprintf

i'm actually on writing a personnal Frama-C plugin wich contains those four files : analyseTU_core.ml module Options = AnalyseTU_options open Cil_types let rec member x list1 = match list1 with []->false |hd :: tl -> if hd = x then true…
evoliptic
  • 333
  • 2
  • 11
-3
votes
1 answer

Frama-c Pre-processing Error

I want to slice a c code but when I write the commands I get some errors which are down. *******[15:18, 26.10.2017] Recep: [kernel] Parsing .opam/system/share/frama-c/libc/__fc_builtin_for_normalization.i (no preprocessing) [kernel] user error:…
1 2 3
29
30