From b1d7d77a2b8380833853e6bdb000f2383ddd5814 Mon Sep 17 00:00:00 2001
From: Cristian Cadar
- When using uClibc and the POSIX runtime, KLEE offers an additional - argument --init-env which replaces the programs main() - function with a special function (klee_init_env) provided inside - the runtime library. This function alters the normal command line processing - of the application, in particular to support construction of symbolic + When using uClibc and the POSIX runtime, KLEE replaces the + program's main() function with a special function + (klee_init_env) provided inside the runtime library. This + function alters the normal command line processing of the + application, in particular to support construction of symbolic arguments. For example, passing --help yields:
-src$ klee --libc=uclibc --posix-runtime --init-env ./echo.bc --help +src$ klee --libc=uclibc --posix-runtime ./echo.bc --help ... usage: (klee_init_env) [options] [program arguments] @@ -388,7 +388,7 @@ usage: (klee_init_env) [options] [program arguments]-src$ klee --libc=uclibc --posix-runtime --init-env ./echo.bc --sym-arg 3 +src$ klee --libc=uclibc --posix-runtime ./echo.bc --sym-arg 3 KLEE: NOTE: Using model: /home/ddunbar/public/klee/Release/lib/libkleeRuntimePOSIX.bca KLEE: output directory = "klee-out-16" KLEE: WARNING: undefined reference to function: __signbitl @@ -495,7 +495,7 @@ KLEE: done: generated tests = 25-src$ klee --optimize --libc=uclibc --posix-runtime --init-env ./echo.bc --sym-arg 3 +src$ klee --optimize --libc=uclibc --posix-runtime ./echo.bc --sym-arg 3 ... KLEE: done: total instructions = 123251 KLEE: done: completed paths = 25 @@ -802,7 +802,7 @@ Lines executed:50.50% of 101-src$ klee --only-output-states-covering-new --optimize --libc=uclibc --posix-runtime --init-env ./echo.bc --sym-args 0 2 4 +src$ klee --only-output-states-covering-new --optimize --libc=uclibc --posix-runtime ./echo.bc --sym-args 0 2 4 ... KLEE: done: total instructions = 7437521 KLEE: done: completed paths = 9963 -- cgit 1.4.1