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] WP, printf


  • Subject: [Frama-c-discuss] WP, printf
  • From: siegel at udel.edu (Stephen Siegel)
  • Date: Wed, 18 Apr 2018 05:08:19 -0400

Just wondering how you deal with programs that do simple I/O, when using Frama-C+WP.
For example:

basie:simple siegel$ cat hello.c

#include <stdio.h>
int main() {
  printf("Hello, world.\n");
}

basie:simple siegel$ frama-c -wp hello.c
[kernel] Parsing hello.c (with preprocessing)
[wp] warning: Missing RTE guards
[wp] 1 goal scheduled
[wp] [Alt-Ergo] Goal typed_main_call_printf_va_1_pre : Timeout (Qed:1ms) (10s)
[wp] Proved goals:    0 / 1
    Alt-Ergo:        0  (interrupted: 1)
basie:simple siegel$


Questions: what is the pre-condition for printf?  How do I discharge the generated proof obligation?

Thanks,
Steve