about summary refs log tree commit diff homepage
path: root/test/regression/2020-04-27-stp-array-names.c
blob: a256441c1dce952b8e3c7409bca0b88f8e5951cb (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 -std=c89 %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];
  }
}