PIPS
template.c File Reference
#include <stdio.h>
+ Include dependency graph for template.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Example of Linear Relation Analysis given by Nicolas Halbwachs in his great tutorial at Aussois, 9/12/2010. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Example of Linear Relation Analysis given by Nicolas Halbwachs in his great tutorial at Aussois, 9/12/2010.

http://compilation.gforge.inria.fr/2010_12_Aussois/programpage/programme.html

After widening: 0 <= y <= x , x >= 101

Definition at line 9 of file template.c.

9  {
10  int x = 0;
11  int y = 0;
12  char b;
13 
14  while(x <= 100) {
15  b = getchar();
16  if (b)
17  x = x + 2;
18  else {
19  x = x + 1;
20  y = y + 1;
21  }
22  }
23  /* After widening: 0 <= y <= x , x >= 101 */
24  return x;
25 }
static char * x
Definition: split_file.c:159

References x.