// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t.bc // RUN: %klee --posix-runtime --init-env %t.bc --sym-files 1 10 --sym-stdout 2>%t.log // RUN: test -f klee-last/test000001.ktest // RUN: test -f klee-last/test000002.ktest // RUN: test -f klee-last/test000003.ktest #include #include #include #include int main(int argc, char** argv) { int fd = open("A", O_RDWR); if (fd != -1) fprintf(stderr, "File 'A' opened successfully\n"); else fprintf(stderr, "Cannot open file 'A'\n"); if (fd != -1) close(fd); }