File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ TOOL_NAME=JBMC
77
88run ()
99{
10+ unzip $BM -d $BM_DIR
11+ make -C $BM_DIR
12+ BM = $BM_DIR /target /task . jar
13+
14+ MORE_OPTIONS = "--throw-runtime-exceptions --max-nondet-string-length 100 --classpath core-models.jar"
15+
1016 if [ "$PROP" = "termination" ] ; then
1117 PROPERTY = "$PROPERTY --no-assertions --no-self-loops-to-assumptions"
1218 fi
@@ -18,11 +24,11 @@ ulimit -v 15000000 ; \
1824EC=42 ; \
1925for c in 2 6 12 17 21 40 200 400 1025 2049 268435456 ; do \
2026echo "Unwind: $c" > $LOG.latest ; \
21- ./jbmc-binary --graphml-witness $LOG.witness --unwind $c --stop-on-fail --$BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY --function $ENTRY $BM >> $LOG.latest 2>&1 ; \
27+ ./jbmc-binary $MORE_OPTIONS --graphml-witness $LOG.witness --unwind $c --stop-on-fail --$BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY --function $ENTRY $BM >> $LOG.latest 2>&1 ; \
2228ec=$? ; \
2329if [ $ec -eq 0 ] ; then \
2430if ! tail -n 10 $LOG.latest | grep -q "^VERIFICATION SUCCESSFUL$" ; then ec=1 ; else \
25- ./jbmc-binary --unwinding-assertions --unwind $c --stop-on-fail --$BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY --function $ENTRY $BM > /dev/null 2>&1 || ec=42 ; \
31+ ./jbmc-binary $MORE_OPTIONS --unwinding-assertions --unwind $c --stop-on-fail --$BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY --function $ENTRY $BM > /dev/null 2>&1 || ec=42 ; \
2632fi ; \
2733fi ; \
2834if [ $ec -eq 10 ] ; then \
Original file line number Diff line number Diff line change @@ -124,8 +124,10 @@ export OBJ_BITS
124124
125125export GMON_OUT_PREFIX = `basename $BM `. gmon . out
126126
127+ export BM_DIR = `mktemp -d -t ${TOOL_NAME} -benchmark . XXXXXX `
128+
127129export LOG = `mktemp -t ${TOOL_NAME} -log . XXXXXX `
128- trap "rm -f $LOG $LOG.latest $LOG.ok $LOG.witness $LOG.bin" EXIT
130+ trap "rm -rf $LOG $LOG.latest $LOG.ok $LOG.witness $LOG.bin $BM_DIR " EXIT
129131
130132run
131133
You can’t perform that action at this time.
0 commit comments