Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] introducing hypothesis with ACSL on sets of array elements witk Frama-C/Value

  • Subject: [Frama-c-discuss] introducing hypothesis with ACSL on sets of array elements witk Frama-C/Value
  • From: stephane.duprat at (DUPRAT Stephane)
  • Date: Tue, 16 Jul 2013 20:20:15 +0000

Hello all,

I took a little time to play with the possibilities of value in evaluating ACSL.

Here it is a piece of code:
int tab1[10];
int tab2[10];
  requires tab1[2]==2;
  requires tab2[2..3]==23;
int f1(void)
  //@ assert a1: tab1[2]==2;
  //@ assert a2: tab1[5]==5;
  //@ assert a3: tab2[2..3]==23;
  //@ assert a4: tab2[6..7]==67;

When I run Frama-C/Value on this little example, the assert a3 is the only one that is not verified.
I deduce that :

-          The tool is able to evaluate a simple element (tab1[5]==5)

-          An hypothesis introduces by ACSL on a simple element (tab1[2]==2) is propagated in the program

-          The tool is able to evaluate a set of elements (tab2[6..7]==67)

-          An hypothesis introduces by ACSL on a set of elements (tab2[2..3]==23) is not propagated in the program

The question is for the last item, if there is a way to introduce hypothesys on sets of elements ?

Thanks in advance.



Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra ?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>