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] similar assertions not all validated


  • Subject: [Frama-c-discuss] similar assertions not all validated
  • From: nicolas.muller at sagem.com (MULLER Nicolas (SAGEM DEFENSE SECURITE))
  • Date: Tue, 17 Apr 2012 11:26:22 +0200

The following issue was encountered on the source file joined herewith.

<<< Expected Behaviour: >>>
The objective of the C program is to find the absolute value of the difference between two floating point values and to prove that the difference in either way is equal i.e (|A-B| == |B-A|), the value of A ranges from (-25.0 < A < 25.0) and the value of B ranges from (-53.5 < B < 53.5), the important criteria that must was taken is that (7 < |A-B| < 28.5),the program uses several asserstions and loop annotations in the ACSL inside the C source code,

<<< Actual Behaviour: >>>
When the C program is called by the gWhy to verify the VC's , we encountered some problems, by using the provers ( Alt-ergo, Simplify,CVC3 & Gappa) we were not able to validate all the VC's , as a common we had 2 VC's which are not validated by all the provers, which is quite suprising, the reason is that , if we look into the ACSL annotations, we could see that there is use of similar kind of two statements is the following lines, and the provers are able to validated those VC's which are of the same type of declarations and same way of usage,the question here is why are the provers not able to prove those two lines of annotations but could prove them in the next few lines but with different variables ?

<<< Prover Peformances >>>
-----------------------------------------------------------------------
S.N  Prover    Percent Total  Valid Invalid  Unknown  TimeOut Failure
-----------------------------------------------------------------------
1.   Alt-ergo    97%     73     71     0         0       2       0
2.   Simplify         92%     73     67     0         0       6       0
3.   CVC3              97%     73     71     0         0       0       2
4.   Gappa       89%     73  65     0         8       0       0
-----------------------------------------------------------------------
- The time was even changed from 10 sec to 300 sec inorder to see if the impact of timeout may resolve but the results remained unchanged.

All the four provers are having trouble in validating the 2 Particular VC's, they are
1. assertion - line 22
2. loop invariant preserved - line 16

The resulting traces and a screenshot are joined as well.



#
" Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caract?re priv?. S'ils ne vous sont pas destin?s, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque mani?re que ce soit le contenu. Si ce message vous a ?t? transmis par erreur, merci d'en informer l'exp?diteur et de supprimer imm?diatement de votre syst?me informatique ce courriel ainsi que tous les documents qui y sont attach?s."
******
" This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system."
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120417/85c3eb5b/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: abs_new.c
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120417/85c3eb5b/attachment-0001.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: abs_new_alt-ergo_trace.txt
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120417/85c3eb5b/attachment-0003.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: abs_new_simplify_trace.txt
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120417/85c3eb5b/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: abs_new_cvc3_trace.txt
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120417/85c3eb5b/attachment-0005.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abs_new_screenshot.png
Type: image/png
Size: 487469 bytes
Desc: abs_new_screenshot.png
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120417/85c3eb5b/attachment-0001.png>