Open tosanjay opened 1 year ago
As a workaround you can try this:
First build the models in /models/klee-libc
by
cd /models/klee-libc
./build.sh
This will produce minilibc.a
Now you can compile c applications that use a set of functions compiled by symcc:
SYMCC_REGULAR_LIBCXX=1 sym++ strcmp-example.c ../models/klee-libc/minilibc.a -o strcmp-example
../util/min-concolic-exec.sh -i ./inp -o ./outs ./strcmp-example @@
...
...
If we use a code (attached) that has strncmp() to check a user input for a particular string (4 char long only!), the tool is not able to generate input that go beyond the guarded branch with that check. TO reproduce:
I think support for such few functions will be highly useful for better performance.