ACSL (ANSI/ISO C Specification Language) is a specification language for C programs, used by tools such as Frama-C.
Questions tagged [acsl]
40 questions
0
votes
1 answer
E-ACSL wrapper script not creating files
I am new to Frama-C and wanted to ask what could be causing this issue:
When I run the E-ACSL wrapper script on annotated code with no header files, the a.out.e-acsl file is properly created.
However, when I try to include header files using -E and…

sgjl
- 27
- 5
0
votes
1 answer
Frama-c: Function calls and static variables
I'm currently discovering frama-c's features, and especially WP & Value's analysis tools. My final goal is to be able to use frama-c on larger codes that involves several layers with:
a lot of function calls
use of complex data structures
static…

Eliott.CH
- 25
- 3
0
votes
1 answer
Unbounded function in EACSL Frama-C plugin
I am trying to generate contracts in C with E-ACSL plugin from FRAMA-C for the following program:
struct lnode {
int value;
struct lnode *next;
};
struct set {
int capacity;
int size;
struct lnode *elems;
};
struct set* new(int…

Raul Coroban
- 47
- 5
0
votes
1 answer
How can be C files linked when using E-ACSL plugin?
I am trying to generate an annotated file with Frama-C E-ACSL plugin. I created the following files:
Insert.c: contains all the structures to create a linked list.
AxiomTest.c: includes the main function where the asserts it must fulfil are…

Raul Coroban
- 47
- 5
0
votes
1 answer
Frama-C warning: Missing assigns clause (assigns 'everything' instead)
I'm testing this small program with frama-c and I keep getting the same error. I'm not sure what it means. I'm particularly confused on what assigns everything means.
Here is the code in question with ACSL annotations:
// assuming n is nonnegative…

the_martian
- 632
- 1
- 9
- 21
0
votes
2 answers
How to force a memory location to be valid in ACSL?
I define device accesses as thus
volatile struct mydevice * const dev = (struct mydevice *)MY_DEVICE_ADDRESS;
I've modeled the accesses using
@ volatile dev->somereg reads somereg_read writes somereg_write;
Now the problem is that when I enable…

Yifan
- 4,867
- 5
- 25
- 24
0
votes
2 answers
ACSL Bit String Flicking
I need help with an ACSL Problem. The contest was done in 2014-2015. It is just practice and I want to see if I did the problem correctly.
Bit-String Flicking:
Solve for x (5 bits) in the following equation. How many unique solutions are…

Austin Clark
- 26
- 3
0
votes
1 answer
ACSL - Can't prove function
I'm trying to prove this function, but in vain. I'm also using another function, but I proved it.
Could anyone help me?
I'm using Frama-C Sodium version with Alt-ergo 3 as prover.
Given a not-empty string x. An integer number p such…

echo
- 84
- 1
- 8
-3
votes
1 answer
Need help on past acsl program from 2013
My teacher is making us do an old ACSL program for practice, and he said that we can use any resources we want. The program is from 2013. link here:…

Xavier Char-Amato
- 1
- 1
- 2
-4
votes
2 answers
Sorting a sentence using arrays and strings
Sorry guys forewarning I suck at coding but have a big project and need help!
Input: A complete Sentence.
Output: The sorted order (ASCii Chart Order) of the sentence (ignore case.)
Output a histogram for the following categories:
1) Vowels
2)…

jv1234
- 1