blob: 96115557e763d1d910a9e9befff6058d7525dcdb (
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
25
26
|
// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out %t1.bc
#include <assert.h>
#include <stdio.h>
int main() {
unsigned char x;
klee_make_symbolic(&x, sizeof x, "x");
if (x >= 2) klee_silent_exit(0);
char delete[2] = {0,1};
char tmp = delete[ x ];
char tmp2 = delete[0];
delete[ x ] = tmp2;
if (x==1) {
assert(delete[1] == 0);
return 0;
}
return 0;
}
|