diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gen-random-bout/gen-random-bout.cpp | 9 | ||||
| -rw-r--r-- | tools/kleaver/main.cpp | 9 | ||||
| -rwxr-xr-x | tools/klee-stats/klee-stats | 10 | ||||
| -rw-r--r-- | tools/klee/main.cpp | 22 | ||||
| -rwxr-xr-x | tools/ktest-tool/ktest-tool | 9 |
5 files changed, 59 insertions, 0 deletions
diff --git a/tools/gen-random-bout/gen-random-bout.cpp b/tools/gen-random-bout/gen-random-bout.cpp index 46f662dd..fca24008 100644 --- a/tools/gen-random-bout/gen-random-bout.cpp +++ b/tools/gen-random-bout/gen-random-bout.cpp @@ -1,3 +1,12 @@ +//===-- gen-random-bout.cpp -------------------------------------*- C++ -*-===// +// +// The KLEE Symbolic Virtual Machine +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + #include <assert.h> #include <stdio.h> #include <stdlib.h> diff --git a/tools/kleaver/main.cpp b/tools/kleaver/main.cpp index edc5f4c9..9c374eb8 100644 --- a/tools/kleaver/main.cpp +++ b/tools/kleaver/main.cpp @@ -1,3 +1,12 @@ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The KLEE Symbolic Virtual Machine +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + #include "expr/Lexer.h" #include "expr/Parser.h" diff --git a/tools/klee-stats/klee-stats b/tools/klee-stats/klee-stats index 6ed772cd..93ae33d5 100755 --- a/tools/klee-stats/klee-stats +++ b/tools/klee-stats/klee-stats @@ -1,5 +1,15 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- + +# ===-- klee-stats --------------------------------------------------------===## +# +# The KLEE Symbolic Virtual Machine +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +# ===----------------------------------------------------------------------===## + """Output statistics logged by Klee.""" # use '/' to mean true division and '//' to mean floor division diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 665cc842..568c70bb 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -1,5 +1,14 @@ /* -*- mode: c++; c-basic-offset: 2; -*- */ +//===-- main.cpp ------------------------------------------------*- C++ -*-===// +// +// The KLEE Symbolic Virtual Machine +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + #include "klee/ExecutionState.h" #include "klee/Expr.h" #include "klee/Interpreter.h" @@ -190,6 +199,11 @@ namespace { cl::list<std::string> SeedOutDir("seed-out-dir"); + cl::list<std::string> + LinkLibraries("link-llvm-lib", + cl::desc("Link the given libraries before execution"), + cl::value_desc("library file")); + cl::opt<unsigned> MakeConcreteSymbolic("make-concrete-symbolic", cl::desc("Probabilistic rate at which to make concrete reads symbolic, " @@ -1303,6 +1317,14 @@ int main(int argc, char **argv, char **envp) { assert(mainModule && "unable to link with simple model"); } + std::vector<std::string>::iterator libs_it; + std::vector<std::string>::iterator libs_ie; + for (libs_it = LinkLibraries.begin(), libs_ie = LinkLibraries.end(); + libs_it != libs_ie; ++libs_it) { + const char * libFilename = libs_it->c_str(); + klee_message("Linking in library: %s.\n", libFilename); + mainModule = klee::linkWithLibrary(mainModule, libFilename); + } // Get the desired main function. klee_main initializes uClibc // locale and other data and then calls main. Function *mainFn = mainModule->getFunction(EntryPoint); diff --git a/tools/ktest-tool/ktest-tool b/tools/ktest-tool/ktest-tool index b7504be8..b73c6375 100755 --- a/tools/ktest-tool/ktest-tool +++ b/tools/ktest-tool/ktest-tool @@ -1,5 +1,14 @@ #!/usr/bin/env python +# ===-- ktest-tool --------------------------------------------------------===## +# +# The KLEE Symbolic Virtual Machine +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +# ===----------------------------------------------------------------------===## + import os import struct import sys |
