diff options
author | Martin Nowack <martin@se.inf.tu-dresden.de> | 2014-02-07 22:30:19 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2015-04-01 15:13:56 +0100 |
commit | c711d470f4382e350748bccdc295fa002d9aaef5 (patch) | |
tree | 0590d150baccabb5d87566c422f8e63467072dd2 | |
parent | 388b52bcf283022733c4160b448a92ab54f02472 (diff) | |
download | klee-c711d470f4382e350748bccdc295fa002d9aaef5.tar.gz |
[runtime] Fix comments to c style for c files and headers
-rw-r--r-- | include/klee/klee.h | 72 | ||||
-rw-r--r-- | runtime/klee-libc/__cxa_atexit.c | 4 | ||||
-rw-r--r-- | runtime/klee-libc/abort.c | 4 | ||||
-rw-r--r-- | runtime/klee-libc/klee-choose.c | 6 | ||||
-rw-r--r-- | runtime/klee-libc/memset.c | 4 |
5 files changed, 48 insertions, 42 deletions
diff --git a/include/klee/klee.h b/include/klee/klee.h index ce92ba37..2ae45596 100644 --- a/include/klee/klee.h +++ b/include/klee/klee.h @@ -1,11 +1,11 @@ -//===-- klee.h --------------------------------------------------*- C++ -*-===// +/*===-- klee.h --------------------------------------------------*- C++ -*-===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------===*/ #ifndef __KLEE_H__ #define __KLEE_H__ @@ -18,51 +18,57 @@ extern "C" { #endif /* Add an accesible memory object at a user specified location. It - is the users responsibility to make sure that these memory - objects do not overlap. These memory objects will also - (obviously) not correctly interact with external function - calls. */ + * is the users responsibility to make sure that these memory + * objects do not overlap. These memory objects will also + * (obviously) not correctly interact with external function + * calls. + */ void klee_define_fixed_object(void *addr, size_t nbytes); - /// klee_make_symbolic - Make the contents of the object pointer to by \arg - /// addr symbolic. - /// - /// \arg addr - The start of the object. - /// \arg nbytes - The number of bytes to make symbolic; currently this *must* - /// be the entire contents of the object. - /// \arg name - An optional name, used for identifying the object in messages, - /// output files, etc. + /* klee_make_symbolic - Make the contents of the object pointer to by \arg + * addr symbolic. + * + * \arg addr - The start of the object. + * \arg nbytes - The number of bytes to make symbolic; currently this *must* + * be the entire contents of the object. + * \arg name - An optional name, used for identifying the object in messages, + * output files, etc. + */ void klee_make_symbolic(void *addr, size_t nbytes, const char *name); - /// klee_range - Construct a symbolic value in the signed interval - /// [begin,end). - /// - /// \arg name - An optional name, used for identifying the object in messages, - /// output files, etc. + /* klee_range - Construct a symbolic value in the signed interval + * [begin,end). + * + * \arg name - An optional name, used for identifying the object in messages, + * output files, etc. + */ int klee_range(int begin, int end, const char *name); - /// klee_int - Construct an unconstrained symbolic integer. - /// - /// \arg name - An optional name, used for identifying the object in messages, - /// output files, etc. + /* klee_int - Construct an unconstrained symbolic integer. + * + * \arg name - An optional name, used for identifying the object in messages, + * output files, etc. + */ int klee_int(const char *name); - /// klee_silent_exit - Terminate the current KLEE process without generating a - /// test file. + /* klee_silent_exit - Terminate the current KLEE process without generating a + * test file. + */ __attribute__((noreturn)) void klee_silent_exit(int status); - /// klee_abort - Abort the current KLEE process. + /* klee_abort - Abort the current KLEE process. */ __attribute__((noreturn)) void klee_abort(void); - /// klee_report_error - Report a user defined error and terminate the current - /// KLEE process. - /// - /// \arg file - The filename to report in the error message. - /// \arg line - The line number to report in the error message. - /// \arg message - A string to include in the error message. - /// \arg suffix - The suffix to use for error files. + /* klee_report_error - Report a user defined error and terminate the current + * KLEE process. + * + * \arg file - The filename to report in the error message. + * \arg line - The line number to report in the error message. + * \arg message - A string to include in the error message. + * \arg suffix - The suffix to use for error files. + */ __attribute__((noreturn)) void klee_report_error(const char *file, int line, diff --git a/runtime/klee-libc/__cxa_atexit.c b/runtime/klee-libc/__cxa_atexit.c index e7982848..990b645d 100644 --- a/runtime/klee-libc/__cxa_atexit.c +++ b/runtime/klee-libc/__cxa_atexit.c @@ -1,11 +1,11 @@ -//===-- __cxa_atexit.c ----------------------------------------------------===// +/*===-- __cxa_atexit.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/klee.h" diff --git a/runtime/klee-libc/abort.c b/runtime/klee-libc/abort.c index 0332d095..741bcf82 100644 --- a/runtime/klee-libc/abort.c +++ b/runtime/klee-libc/abort.c @@ -1,11 +1,11 @@ -//===-- abort.c -----------------------------------------------------------===// +/*===-- abort.c -----------------------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------===*/ #include <stdlib.h> diff --git a/runtime/klee-libc/klee-choose.c b/runtime/klee-libc/klee-choose.c index 181aedaa..44e5cea2 100644 --- a/runtime/klee-libc/klee-choose.c +++ b/runtime/klee-libc/klee-choose.c @@ -1,11 +1,11 @@ -//===-- klee-choose.c -----------------------------------------------------===// +/*===-- klee-choose.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/klee.h" @@ -13,7 +13,7 @@ uintptr_t klee_choose(uintptr_t n) { uintptr_t x; klee_make_symbolic(&x, sizeof x, "klee_choose"); - // NB: this will *not* work if they don't compare to n values. + /* NB: this will *not* work if they don't compare to n values. */ if(x >= n) klee_silent_exit(0); return x; diff --git a/runtime/klee-libc/memset.c b/runtime/klee-libc/memset.c index ee9ecb87..81025d32 100644 --- a/runtime/klee-libc/memset.c +++ b/runtime/klee-libc/memset.c @@ -1,11 +1,11 @@ -//===-- memset.c ----------------------------------------------------------===// +/*===-- memset.c ----------------------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------===*/ #include <stdlib.h> |