about summary refs log tree commit diff homepage
path: root/test/regression/2020-04-27-stp-array-names.c
blob: f06e1b1a09e7c917b67c30b141a3ac6d55f94d48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// RUN: %clang %s -emit-llvm %O0opt -g -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee -output-dir=%t.klee-out --search=bfs --max-instructions=1000 %t.bc
b;
a(c) {
  if (!c)
    abort();
}
main() {
  int e;
  short d;
  klee_make_symbolic(&d, sizeof(d), "__sym___VERIFIER_nondet_short");
  b = d;
  a(b > 0);
  int f[b];
  int g[b];
  for (;;) {
    short d;
    klee_make_symbolic(&d, sizeof(d), "__sym___VERIFIER_nondet_short");
    a(d >= 0 && d < b);
    f[d];
    g[b - 1 - d];
  }
}