File: val_if.i

package info (click to toggle)
frama-c 20161101%2Bsilicon%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 42,324 kB
  • ctags: 35,695
  • sloc: ml: 200,142; ansic: 31,465; makefile: 2,334; sh: 1,643; lisp: 259; python: 85; asm: 26
file content (47 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* run.config*
   GCC:
   STDOPT: #"-main f"
   STDOPT: #"-main f1"
   STDOPT: #"-main f2"
*/
int i,j,x,k,l,m,n,d;
void f(int c){
  int j = 12;
  if (c) x=1; else x = -1;

  if (x<=-2) j = x;

  i = 10;
}

void f1(int c){
  j= 13;
  k= 14;
  l= 15;
  if (c) x=1; else x = -1;

  if (x<=0)
    {j = x;
    if (x<=-2) k = x;
    l=x;
      }

  i = 10;
}

void f2(int c) {
  j= 16;
  k= 17;
  l= 18;
  if (c) x=1; else {
    if (d) x=2; else x = 3;
    }

  if (x <= 1 || x>=3  )
    { x = 2;
    j = x;
      }
  else { x++ ; k = x;};

  i = 10;
}