about summary refs log tree commit diff homepage
path: root/runtime/Intrinsic/klee_range.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-22 16:27:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-22 16:27:06 +0000
commitea6e216751979131b269ed31873edbe7e8b752a3 (patch)
tree8d4911a0bcd4c99ce3e832fce88bdad34bd61bfc /runtime/Intrinsic/klee_range.c
parent21bbf33d53209f1bc30562b1bebb9f568c5c7360 (diff)
downloadklee-ea6e216751979131b269ed31873edbe7e8b752a3.tar.gz
Add "name" argument to klee_make_symbolic, and kill off klee_make_symbolic_name.
 - For compatibility we still accept 2 argument form of klee_make_symbolic, but
   this will go away eventually.


git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/Intrinsic/klee_range.c')
-rw-r--r--runtime/Intrinsic/klee_range.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/Intrinsic/klee_range.c b/runtime/Intrinsic/klee_range.c
index 59d1a05e..5da6a7a5 100644
--- a/runtime/Intrinsic/klee_range.c
+++ b/runtime/Intrinsic/klee_range.c
@@ -13,12 +13,13 @@
 int klee_range(int start, int end, const char* name) {
   int x;
 
-  assert(start < end);
+  if (start >= end)
+    klee_report_error(__FILE__, __LINE__, "invalid range", "user");
 
   if (start+1==end) {
     return start;
   } else {
-    klee_make_symbolic_name(&x, sizeof x, name); 
+    klee_make_symbolic(&x, sizeof x, name); 
 
     /* Make nicer constraint when simple... */
     if (start==0) {