File: vdescr_bts1387.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 (43 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
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
/* run.config
OPT: -load-script tests/syntax/vdescr_bts1387.ml
*/
int f(int);
int g(int);

int (*fptr)(int, int);

int main(int j, int k)
{
  int a, b, c, d, *p, t[2];
  a = 1 + j++;
  p = j ? &j : &k;
  a = (*p) + 1;
  a = (*p) + 1;
  a = (*p++) + 1;
  p--;
  a = (*p++) + 1;
  p--;
  b = ++j + 1;
  c = f(j) + g(j);

  d = 3 + *(k?&j:(int*)0);

  d = 100 / j;

  fptr = f;
  if (d & 1) (*fptr)(1, 2);

  if (d & 2) t[0] = t[1] + 1;

  t[d & 4] = j;
  j = t[d & 8];

  {
    int l;
    p = &l;
  }

  if (d & 16) *p = 1;

  return j;
}