about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Feature/SolverTimeout.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Feature/SolverTimeout.c b/test/Feature/SolverTimeout.c
new file mode 100644
index 00000000..96f75cd7
--- /dev/null
+++ b/test/Feature/SolverTimeout.c
@@ -0,0 +1,15 @@
+// RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
+// RUN: %klee --max-stp-time=1 %t1.bc
+#include <stdio.h>
+
+int main() {
+  long long int x, y = 102*75678 + 78, i = 101;
+
+  klee_make_symbolic(&x, sizeof(x), "x");
+
+  if (x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x + (x*x % (x+12)) == y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y % i)
+    printf("Yes\n");
+  else printf("No\n");
+  
+  return 0;
+}