blob: e90baa2c85b292dc926e5d78b1ca5e1b98b9ad39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --exit-on-error %t1.bc
#include <stdlib.h>
int main() {
// concrete case
void *p = malloc(0);
free(p);
p = malloc(0);
void *arr[4] = { p, 0, 0, 0 };
// symbolic case
free(arr[klee_range(0, 4, "range")]);
}
|