Skip to content

Commit 9e57f4e

Browse files
Merge pull request #57 from peterschrammel/improve-jbmc-readme
Improve JBMC readme
2 parents 3b238c7 + d50a9b9 commit 9e57f4e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CBMC=../cbmc
22
2LS=../2ls
33
JBMC=../cbmc
4-
YEAR=2019
54

65
all: cbmc 2ls jbmc
76

@@ -65,10 +64,11 @@ jbmc.zip: jbmc.inc tool-wrapper.inc $(JBMC)/LICENSE $(JBMC)/jbmc/src/jbmc/jbmc $
6564
$(MAKE) jbmc-wrapper
6665
mv jbmc-wrapper $(basename $@)/jbmc
6766
./sv-comp-readme.sh $(basename $@) > $(basename $@)/README
68-
cp -L $(JBMC)/LICENSE $(basename $@)/
67+
cp -L $(JBMC)/LICENSE $(basename $@)/LICENSE-for-JBMC
68+
cp -L $(JBMC)/jbmc/lib/java-models-library/OpenJDK\ \ GPLv2\ +\ Classpath\ Exception.txt $(basename $@)/LICENSE-for-core-models
6969
cp -L $(JBMC)/jbmc/src/jbmc/jbmc $(basename $@)/jbmc-binary
7070
cp -L $(JBMC)/jbmc/lib/java-models-library/target/core-models.jar $(basename $@)/
7171
chmod a+rX $(basename $@)/*
7272
zip -r $@ $(basename $@)
73-
cd $(basename $@) && rm jbmc jbmc-binary core-models.jar LICENSE README
73+
cd $(basename $@) && rm jbmc jbmc-binary core-models.jar LICENSE-for-core-models LICENSE-for-JBMC README
7474
rmdir $(basename $@)

sv-comp-readme.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,28 @@ terminate for input programs that contain loops unless you specify an
7676
unwinding limit using --unwind N. For other flags, see `cbmc-binary -h`.
7777
7878
EOF
79-
else
79+
elif [ x$TOOL != xjbmc ]
80+
then
8081
cat <<EOF
8182
8283
To use the tool, run the tool passing a source file as argument. For C source
8384
code, and as only installation requirement, make sure a C compiler (such as GCC)
8485
is installed.
8586
EOF
87+
else
88+
cat <<EOF
89+
90+
To use the tool, run the tool passing a class or jar file as argument.
91+
Compile sources with Java 8. Using -g is recommended to obtain more
92+
readable counterexample traces.
93+
EOF
8694
fi
8795

8896
cat <<EOF
8997
9098
For SV-COMP, use the wrapper script provided in this distribution, which takes
9199
the following options:
92-
100+
<path(s)> to sources
93101
--32 or --64: set the bit width
94102
--propertyfile <file>: read SV-COMP property specification from <file>
95103
--graphml-witness <file>: write SV-COMP witness to <file>

0 commit comments

Comments
 (0)