// RUN: %clang -emit-llvm -c -g %s -o %t.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --entry-point=SeedGen %t.bc // RUN: test -f %t.klee-out/test000001.ktest // RUN: not test -f %t.klee-out/test000002.ktest // RUN: rm -rf %t.klee-out-2 // RUN: %klee --output-dir=%t.klee-out-2 --seed-file %t.klee-out/test000001.ktest %t.bc | FileCheck --allow-empty %s #include "klee/klee.h" #include #include #include void SeedGen() { unsigned x; klee_make_symbolic(&x, sizeof(x), "x"); klee_assume(x == 100); } int main(int argc, char **argv) { unsigned s; klee_make_symbolic(&s, sizeof(s), "size"); char *p = (char *)malloc(s); if (!p) return 0; if (s != 100) printf("Error\n"); // CHECK-NOT: Error }