diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/islower/islower.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/islower/islower.c b/examples/islower/islower.c new file mode 100644 index 00000000..ab85d072 --- /dev/null +++ b/examples/islower/islower.c @@ -0,0 +1,17 @@ +/* + * First KLEE tutorial: testing a small function + */ + +#include <klee/klee.h> + +int my_islower(int x) { + if (x >= 'a' && x <= 'z') + return 1; + else return 0; +} + +int main() { + char c; + klee_make_symbolic(&c, sizeof(c), "input"); + return my_islower(c); +} |