-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Динмухаметов Марат Линарович
committed
Apr 24, 2021
1 parent
6d01965
commit 704b93c
Showing
2 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# JavaBoolector | ||
|
||
JavaBoolector allows you to call [Boolector](https://github.com/boolector/boolector) from Java | ||
|
||
## Build | ||
|
||
Build jar with all the dependencies: | ||
|
||
```shell | ||
$ mvn clean package | ||
``` | ||
|
||
## Adding new bindings | ||
|
||
1) Add your native method to the Native class | ||
|
||
2) Generate JavaBoolector.h: | ||
```shell | ||
$ cd JavaBoolector/java | ||
$ ./gen_native_h.sh | ||
``` | ||
3) And implement your method in JavaBoolector.c |
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,13 @@ | ||
#!/bin/bash | ||
|
||
java=$(pwd) | ||
c=$java/../c | ||
javac -h $c $java/src/main/java/org/jetbrains/research/boolector/Native.java | ||
native=$c/org_jetbrains_research_boolector_Native.h | ||
|
||
if [ -f $native ] | ||
then | ||
mv $native $c/JavaBoolector.h | ||
else | ||
echo "Header not generated" | ||
fi |