File: test-1.c

package info (click to toggle)
ikos 3.5-2
  • links: PTS, VCS
  • area: non-free
  • in suites: sid
  • size: 11,896 kB
  • sloc: cpp: 102,890; python: 6,471; ansic: 5,860; sh: 2,409; javascript: 348; makefile: 16
file content (12 lines) | stat: -rw-r--r-- 143 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// SAFE
int* foo(int* x, int* y) {
  return x + *y;
}

int main() {
  int a[10] = {0};
  int b = 5;

  int* z = foo(&a[0], &b);
  return *z;
}