blob: 88a5fca376e3219693e3a3c60fdeff11208857a2 (
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
|
// XFAIL: *
// RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out -exit-on-error -solver-optimize-divides=true %t.bc >%t1.log
// RUN: grep "m is 2" %t1.log
#include <assert.h>
int main(void)
{
int n, m;
klee_make_symbolic(&n, sizeof n, "n");
klee_assume(n < -1);
if (n/2 > 0)
assert(0);
klee_make_symbolic(&m, sizeof m, "m");
klee_assume(m > 0);
if (m/2 == 2)
printf("m is 2\n");
return 0;
}
|