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] Frama-c-discuss Digest, Vol 63, Issue 2


  • Subject: [Frama-c-discuss] Frama-c-discuss Digest, Vol 63, Issue 2
  • From: jens.gerlach at fokus.fraunhofer.de (Gerlach, Jens)
  • Date: Fri, 9 Aug 2013 11:38:27 +0000
  • In-reply-to: <mailman.27.1376042548.3402.frama-c-discuss@lists.gforge.inria.fr>
  • References: <mailman.27.1376042548.3402.frama-c-discuss@lists.gforge.inria.fr>

Hello Pierre,


On 9 Aug 2013, at 12:02, frama-c-discuss-request at lists.gforge.inria.fr wrote:

> int x = 0;
> 
> /*@ requires y >= 0;
>  @ ensures \result > x;
>  @*/
> int f(int y) { return y +1; }


in my opinion the function cannot be verified because the operation y+1 might overflow
in which case the result can become negative.

frama-c -cpp-command 'gcc -C -E -I.' -pp-annot -no-unicode -wp -wp-rte -wp-out f.wp f.c
[kernel] preprocessing with "gcc -C -E -I.  -dD f.c"
[wp] Running WP plugin...
[wp] Collecting axiomatic usage
[rte] annotating function f
[wp] 2 goals scheduled
[wp] [Alt-Ergo] Goal typed_f_assert_rte_signed_overflow : Unknown
[wp] [Alt-Ergo] Goal typed_f_post : Unknown


Regards

Jens