diff options
Diffstat (limited to 'test/Merging/state_termination.c')
-rw-r--r-- | test/Merging/state_termination.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Merging/state_termination.c b/test/Merging/state_termination.c new file mode 100644 index 00000000..52986f4b --- /dev/null +++ b/test/Merging/state_termination.c @@ -0,0 +1,21 @@ +// RUN: %llvmgcc -emit-llvm -g -c -o %t.bc %s +// RUN: rm -rf %t.klee-out +// RUN: %klee --output-dir=%t.klee-out --use-merge --debug-log-merge --search=dfs %t.bc + +#include <klee/klee.h> + +int main(int argc, char** args){ + + int x; + + char str[5]; + klee_make_symbolic(str, sizeof(str), "str"); + char *s = str; + + klee_open_merge(); + while(*s != 's') + s++; + klee_close_merge(); + + return 0; +} |