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] Value analysis and approximaitons
- Subject: [Frama-c-discuss] Value analysis and approximaitons
- From: aporumb at iname.com (Porumb Andrei)
- Date: Mon, 17 May 2010 21:57:12 +0300
Hello Frama-C! I am a new user and I am most interested in Value Analysis. I have written a very small program which intends to build for a variable (here it is called "s") a set of values. In the program, the values come from the array called "v", through some indirections. Running my small program with -val will give the following results s ? {1; 2; 3; 4; 5; 107; 110; }, which is "as expected". However, as soon as I change the interval to (0,7), I get s ? [1..110], which is obviously an approximation. Question is: how can I stop frama-c from making this approximation and instead to feed me the result of s ? {1; 2; 3; 4; 5; 107; 108; 110; }? Thank you very much for your time! #include "builtin.h" typedef struct s { int n; int *p; } S; int v[10]={1,2,3,4,5,110,107,108,109,106}; S big={10,v}; void main(void) { int i; int s=0; s=big.p[Frama_C_interval(0,6)]; } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20100517/2fdac3c8/attachment.htm>
- Follow-Ups:
- [Frama-c-discuss] Value analysis and approximaitons
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] Value analysis and approximaitons
- Prev by Date: [Frama-c-discuss] question about a simple example and jessie
- Next by Date: [Frama-c-discuss] Value analysis and approximaitons
- Previous by thread: [Frama-c-discuss] Feedback on presenting Formal Methods
- Next by thread: [Frama-c-discuss] Value analysis and approximaitons
- Index(es):