Skip to content

Commit

Permalink
Use #include "klee/..." (instead of #include <klee/...>) consistently.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccadar authored and MartinNowack committed Jul 30, 2019
1 parent 9b3c988 commit 5732990
Show file tree
Hide file tree
Showing 31 changed files with 75 additions and 66 deletions.
2 changes: 1 addition & 1 deletion examples/get_sign/get_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* First KLEE tutorial: testing a small function
*/

#include <klee/klee.h>
#include "klee/klee.h"

int get_sign(int x) {
if (x == 0)
Expand Down
2 changes: 1 addition & 1 deletion examples/regexp/Regexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
*/

#include <klee/klee.h>
#include "klee/klee.h"

static int matchhere(char*,char*);

Expand Down
6 changes: 3 additions & 3 deletions examples/sort/sort.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <klee/klee.h>
#include "klee/klee.h"

#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

static void insert_ordered(int *array, unsigned nelem, int item) {
unsigned i = 0;
Expand Down
8 changes: 4 additions & 4 deletions include/klee/Expr/ExprSMTLIBPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#ifndef KLEE_EXPRSMTLIBPRINTER_H
#define KLEE_EXPRSMTLIBPRINTER_H

#include <klee/Expr/Constraints.h>
#include <klee/Expr/Expr.h>
#include <klee/Solver.h>
#include <klee/util/PrintContext.h>
#include "klee/Expr/Constraints.h"
#include "klee/Expr/Expr.h"
#include "klee/Solver.h"
#include "klee/util/PrintContext.h"

#include <map>
#include <set>
Expand Down
2 changes: 1 addition & 1 deletion include/klee/Internal/Module/Cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef KLEE_CELL_H
#define KLEE_CELL_H

#include <klee/Expr/Expr.h>
#include "klee/Expr/Expr.h"

namespace klee {
class MemoryObject;
Expand Down
4 changes: 2 additions & 2 deletions lib/Core/PTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include "PTree.h"

#include <klee/Expr/Expr.h>
#include <klee/Expr/ExprPPrinter.h>
#include "klee/Expr/Expr.h"
#include "klee/Expr/ExprPPrinter.h"

#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion lib/Core/PTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef KLEE_PTREE_H
#define KLEE_PTREE_H

#include <klee/Expr/Expr.h>
#include "klee/Expr/Expr.h"

namespace klee {
class ExecutionState;
Expand Down
2 changes: 1 addition & 1 deletion runtime/Intrinsic/klee_div_zero_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//

#include <klee/klee.h>
#include "klee/klee.h"

void klee_div_zero_check(long long z) {
if (z == 0)
Expand Down
2 changes: 1 addition & 1 deletion runtime/Intrinsic/klee_overshift_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//

#include <klee/klee.h>
#include "klee/klee.h"

/* This instrumentation call is used to check for overshifting.
* If we do try to do x << y or x >> y
Expand Down
3 changes: 2 additions & 1 deletion runtime/Intrinsic/klee_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
//
//===----------------------------------------------------------------------===//

#include "klee/klee.h"

#include <assert.h>
#include <klee/klee.h>

int klee_range(int start, int end, const char* name) {
int x;
Expand Down
19 changes: 10 additions & 9 deletions runtime/POSIX/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,28 @@
#define _LARGEFILE64_SOURCE
#include "fd.h"

#include <string.h>
#include "klee/klee.h"

#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/syscall.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdarg.h>
#include <assert.h>
#ifndef __FreeBSD__
#include <sys/vfs.h>
#endif
#include <unistd.h>
#include <dirent.h>
#include <sys/ioctl.h>
#include <sys/mtio.h>
#include <termios.h>
#include <sys/select.h>
#include <klee/klee.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>

/* Returns pointer to the symbolic file structure fs the pathname is symbolic */
static exe_disk_file_t *__get_sym_file(const char *pathname) {
Expand Down
22 changes: 11 additions & 11 deletions runtime/POSIX/fd_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@
#endif
#endif


#include "klee/Config/Version.h"
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#include "fd.h"

#include <string.h>
#include "klee/Config/Version.h"
#include "klee/klee.h"

#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/syscall.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdarg.h>
#include <assert.h>
#ifndef __FreeBSD__
#include <sys/vfs.h>
#endif
#include <unistd.h>
#include <dirent.h>
#include <sys/ioctl.h>
#include <sys/mtio.h>
#include <termios.h>
#include <sys/select.h>
#include <klee/klee.h>
#include <termios.h>
#include <unistd.h>

/*** Forward to actual implementations ***/

Expand Down
8 changes: 4 additions & 4 deletions runtime/POSIX/fd_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#include "fd.h"
#include <klee/klee.h>

#include <string.h>
#include "klee/klee.h"

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <unistd.h>


exe_file_system_t __exe_fs;

/* NOTE: It is important that these are statically initialized
Expand Down
10 changes: 5 additions & 5 deletions runtime/POSIX/illegal.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
//
//===----------------------------------------------------------------------===//

#include <stdio.h>
#include "klee/klee.h"

#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <sys/types.h>

#include <klee/klee.h>
#include <unistd.h>

void klee_warning(const char*);
void klee_warning_once(const char*);
Expand Down
7 changes: 4 additions & 3 deletions runtime/POSIX/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
//
//===----------------------------------------------------------------------===//

#include "klee/klee.h"

#include <assert.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <errno.h>
#include <stdlib.h>
#include <klee/klee.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>

#if 0
#define MAX_SYM_ENV_SIZE 32
Expand Down
3 changes: 2 additions & 1 deletion test/Feature/ExitOnErrorType.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out -exit-on-error-type Assert %t1.bc 2>&1

#include "klee/klee.h"

#include <assert.h>
#include <klee/klee.h>

int main() {
assert(klee_int("assert"));
Expand Down
3 changes: 2 additions & 1 deletion test/Feature/RewriteEqualities.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
// RUN: %klee --output-dir=%t.klee-out --search=dfs --write-kqueries --rewrite-equalities %t.bc
// RUN: FileCheck -input-file=%t.klee-out/test000003.kquery %s

#include "klee/klee.h"

#include <stdio.h>
#include <klee/klee.h>

int run(unsigned char * x, unsigned char * y) {
y[6] = 15;
Expand Down
2 changes: 1 addition & 1 deletion test/Merging/batching_break.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// CHECK: close merge:
// CHECK: KLEE: done: generated tests = 3{{$}}

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char** args){

Expand Down
3 changes: 2 additions & 1 deletion test/Merging/easy_merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
// CHECK: close merge:
// CHECK: close merge:
// CHECK: generated tests = 2{{$}}
#include <klee/klee.h>

#include "klee/klee.h"

int main(int argc, char** args){

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/incomplete_merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// It might occur that the random branch selection completes the heavy branch first,
// which results in the branches being merged completely.

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char **args) {

Expand Down
7 changes: 4 additions & 3 deletions test/Merging/indirect_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// RUN: %klee --output-dir=%t.klee-out --use-merge --debug-log-merge --search=nurs:covnew --use-batching-search %t.bc 2>&1 | FileCheck %s

// CHECK: generated tests = 2{{$}}
#include <stdlib.h>
#include <stdio.h>

#include <klee/klee.h>
#include "klee/klee.h"

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv) {

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/loop_merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// CHECK: close merge:
// CHECK: generated tests = 2{{$}}

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char** args){

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/merge_fail.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// This test will not merge because we cannot merge states when they allocated memory.

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char **args) {

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/nested_merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// CHECK: close merge:
// CHECK: generated tests = 1{{$}}

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char **args) {

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/split_merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// CHECK: close merge:
// CHECK: generated tests = 2{{$}}

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char** args){

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/state_termination.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --use-merge --debug-log-merge --search=dfs %t.bc

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char** args){

Expand Down
2 changes: 1 addition & 1 deletion test/Merging/unexpected_close.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// CHECK: ran into a close at
// CHECK: generated tests = 2{{$}}

#include <klee/klee.h>
#include "klee/klee.h"

int main(int argc, char **args) {

Expand Down
2 changes: 1 addition & 1 deletion test/regression/2014-09-13-debug-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// CHECK: object 0: int : 32
// CHECK: object 0: int : 99

#include <klee/klee.h>
#include "klee/klee.h"

void f0(void) {}
void f1(void) {}
Expand Down
3 changes: 2 additions & 1 deletion test/regression/2014-12-08-ashr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out -exit-on-error %t.bc

#include "klee/klee.h"

#include <assert.h>
#include <klee/klee.h>

int f1(int a, int b) {
return a + b;
Expand Down
3 changes: 2 additions & 1 deletion test/regression/2015-06-22-struct-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out -exit-on-error %t.bc

#include "klee/klee.h"

#include <assert.h>
#include <klee/klee.h>

union U0 {
signed f3 :18;
Expand Down
Loading

0 comments on commit 5732990

Please sign in to comment.