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] How to include standard header (e.g. string.h) in Frama-C Sodium?
- Subject: [Frama-c-discuss] How to include standard header (e.g. string.h) in Frama-C Sodium?
- From: dmentre at linux-france.org (David MENTRE)
- Date: Wed, 03 Jun 2015 16:06:47 +0200
Hello, I have attached C code, including <string.h> and calling strcpy(). I would like to prove this kind of code using WP. I use the following command line: frama-c -frama-c-stdlib -wp -wp-rte string_use.c However, I get following warnings: """ [wp] warning: No definition for 'memchr' interpreted as reads nothing [wp] warning: No definition for 'strlen' interpreted as reads nothing [wp] warning: No definition for 'memset' interpreted as reads nothing [wp] warning: No definition for 'strchr' interpreted as reads nothing [wp] warning: No definition for 'strcmp' interpreted as reads nothing [wp] warning: No definition for 'strncmp' interpreted as reads nothing [wp] warning: No definition for 'wcscmp' interpreted as reads nothing [wp] warning: No definition for 'wcslen' interpreted as reads nothing [wp] warning: No definition for 'wcsncmp' interpreted as reads nothing """ How should I call Frama-C Sodium to avoid those warnings? From my understanding of §5.1 of User manual, -frama-c-stdlib should be enough. In FRAMAC_SHARE/libc/string.h (including __fc_string_axiomatic.h), all the needed function contracts are defined (e.g. memchr()). Best regards, david -------------- next part -------------- #include <string.h> int main(void) { char *s = "abc"; char t[4]; strcpy(t, s); return 0; }
- Follow-Ups:
- [Frama-c-discuss] How to include standard header (e.g. string.h) in Frama-C Sodium?
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] How to include standard header (e.g. string.h) in Frama-C Sodium?
- Prev by Date: [Frama-c-discuss] Error while loading C file
- Next by Date: [Frama-c-discuss] How to include standard header (e.g. string.h) in Frama-C Sodium?
- Previous by thread: [Frama-c-discuss] Error while loading C file
- Next by thread: [Frama-c-discuss] How to include standard header (e.g. string.h) in Frama-C Sodium?
- Index(es):