run using KLEE error

I am new to Klee, so I started to make the tutorials.If for compilation I use:llvm-gcc --emit-llvm -c -g get_sign.c and then I try to run using klee get_sign.o I get the error : KLEE: ERROR: error loading program 'get_sign.o': Invalid MODULE_CODE_GLOBALVAR record . The error is defined in the BitcodeReader.cpp file http://llvm.org/docs/doxygen/html/BitcodeReader_8cpp_source.html at line 01594.clang (that I have used succesfully for my LLVM passes), it appears that is not possible to use it: KLEE: ERROR: error loading progra...Read more

KLEE configuration error

I am trying to install KLEE by following the step at:http://klee.github.io/getting-started/Unfortunately, at step 06 "Configure KLEE: From the KLEE source directory, run:"I get the following error:xxx@xxx18:~/klee$ ./configure --with-llvm=/home/xxx/llvm-2.9 --with-stp=/home/xxx/stp-r940/installchecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking...Read more

KLEE does not find uninitialized variable error

I am learning KLEE now and I wrote a simple code:#include "klee/klee.h"#include <stdio.h>#include <stdlib.h>int test(int *p){ int *q = (int *) malloc(sizeof(int)); if ((*p) == (*q)) { printf("reading uninitialized heap memory"); } return 0;}int main(){ int *p = (int *) malloc(sizeof(int)); test(p); return 0;}First, I generate LLVM bitcode, and then I execute KLEE to the bitcode.Following is all output:KLEE: output directory is "/Users/yjy/WorkSpace/Test/klee-out-13"Using STP solver backendKLEE: WARNING: un...Read more

Klee installation error

I am trying to install klee (http://klee.github.io/build-llvm34/) in Ubuntu 16.04 LTS. I am having clang-3.9. After executing below command in klee_build_dir, I have bin directory with klee-stats and ktest-tool, but no klee. Please helpcmake -DENABLE_SOLVER_Z3=ON -DENABLE_SOLVER_STP=OFF -DENABLE_POSIX_RUNTIME=ON -DENABLE_KLEE_UCLIBC=ON -DENABLE_UNIT_TESTS=OFF -DENABLE_SYSTEM_TESTS=OFF -DKLEE_UCLIBC_PATH=/home/balaji/Downloads/klee-uclibc /home/balaji/Downloads/klee-- The CXX compiler identification is GNU 5.4.0-- The C compiler identification i...Read more