about summary refs log tree commit diff homepage
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/regexp/Regexp.c2
-rw-r--r--examples/sort/sort.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/regexp/Regexp.c b/examples/regexp/Regexp.c
index f3e751f9..a48ea928 100644
--- a/examples/regexp/Regexp.c
+++ b/examples/regexp/Regexp.c
@@ -53,7 +53,7 @@ int main() {
   char re[SIZE];
   
   // Make the input symbolic. 
-  klee_make_symbolic_name(re, sizeof re, "re");
+  klee_make_symbolic(re, sizeof re, "re");
 
   // Try to match against a constant string "hello".
   match(re, "hello");
diff --git a/examples/sort/sort.c b/examples/sort/sort.c
index a1629c6b..62e4124e 100644
--- a/examples/sort/sort.c
+++ b/examples/sort/sort.c
@@ -71,7 +71,7 @@ void test(int *array, unsigned nelem) {
 int main() {
   int input[4] = { 4, 3, 2, 1};
 
-  klee_make_symbolic(&input, sizeof(input));
+  klee_make_symbolic(&input, sizeof(input), "input");
   test(input, 4);
 
   return 0;