Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Динмухаметов Марат Линарович committed Apr 24, 2021
1 parent 6d01965 commit 704b93c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
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
13 changes: 13 additions & 0 deletions java/gen_native_h.sh
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

0 comments on commit 704b93c

Please sign in to comment.