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 (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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>