about summary refs log tree commit diff homepage
path: root/www/code-examples/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/code-examples/demo.c')
-rw-r--r--www/code-examples/demo.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/code-examples/demo.c b/www/code-examples/demo.c
new file mode 100644
index 00000000..69e0715a
--- /dev/null
+++ b/www/code-examples/demo.c
@@ -0,0 +1,11 @@
+int my_islower(int x) {
+  if (x >= 'a' && x <= 'z')
+    return 1;
+  else return 0;
+}
+
+int main() {
+  char c;
+  klee_make_symbolic_name(&c, sizeof(c), "input");
+  return my_islower(c);
+}