-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime implementation for goblint.h (issue #814)
- Loading branch information
Showing
6 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,5 +65,6 @@ | |
(share lib_stub_src) | ||
(share lib_runtime_include) | ||
(share lib_runtime_src) | ||
(share lib_runtime) | ||
(share conf)) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# override root goblint .gitignore | ||
!goblint | ||
|
||
*.a | ||
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; dune build lib/goblint/runtime/libgoblint.a | ||
(copy_files | ||
(mode (promote (until-clean))) | ||
(files src/libgoblint.a)) | ||
|
||
(copy_files | ||
(mode (promote (until-clean))) | ||
(files src/dllgoblint.so)) | ||
|
||
(install | ||
(section (site (goblint lib_runtime))) | ||
(files | ||
libgoblint.a | ||
dllgoblint.so)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(foreign_library | ||
(archive_name goblint) | ||
(language c) | ||
(names goblint) | ||
(include_dirs ../include)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "goblint.h" | ||
#include <pthread.h> | ||
|
||
// Empty implementations (instead of asserts) because annotating documentation promises no-op right now. | ||
|
||
void __goblint_check(int exp) { | ||
|
||
} | ||
|
||
void __goblint_assume(int exp) { | ||
|
||
} | ||
|
||
void __goblint_assert(int exp) { | ||
|
||
} | ||
|
||
|
||
void __goblint_assume_join(pthread_t thread) { | ||
|
||
} | ||
|
||
|
||
void __goblint_split_begin(int exp) { | ||
|
||
} | ||
|
||
void __goblint_split_end(int exp) { | ||
|
||
} |