Skip to content

Commit 6756c84

Browse files
Merge pull request #26 from peterschrammel/obj-bits-fixes
Object bits and other params
2 parents 9dfa5f8 + 3858c8d commit 6756c84

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

2ls.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ run()
1313
PROPERTY2="$PROPERTY --nontermination --competition-mode"
1414

1515
# run the termination and nontermination analysis in parallel
16-
$TOOL_BINARY --graphml-witness $LOG.witness $BIT_WIDTH --object-bits OBJ_BITS $PROPERTY1 \
16+
$TOOL_BINARY --graphml-witness $LOG.witness $BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY1 \
1717
--function $ENTRY $BM >> $LOG.ok1 2>&1 &
1818
PID1="$!"
19-
$TOOL_BINARY --graphml-witness $LOG.witness $BIT_WIDTH --object-bits OBJ_BITS $PROPERTY2 \
19+
$TOOL_BINARY --graphml-witness $LOG.witness $BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY2 \
2020
--function $ENTRY $BM >> $LOG.ok2 2>&1 &
2121
PID2="$!"
2222
# this might not work in all environments
@@ -57,7 +57,7 @@ run()
5757
PROPERTY="$PROPERTY --heap-interval --k-induction --competition-mode"
5858

5959
# run the tool
60-
$TOOL_BINARY --graphml-witness $LOG.witness $BIT_WIDTH --object-bits OBJ_BITS $PROPERTY \
60+
$TOOL_BINARY --graphml-witness $LOG.witness $BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY \
6161
--function $ENTRY $BM >> $LOG.ok 2>&1
6262

6363
# store the exit code

cbmc.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ TOOL_NAME=CBMC
88
run()
99
{
1010
if [ "$PROP" = "termination" ] ; then
11-
PROPERTY="$PROPERTY --no-assertions"
11+
PROPERTY="$PROPERTY --no-assertions --no-self-loops-to-assumptions"
1212
fi
1313

14-
timeout 850 bash -c ' \
14+
timeout 875 bash -c ' \
1515
\
1616
ulimit -v 15000000 ; \
1717
\
1818
EC=42 ; \
1919
for c in 2 6 12 17 21 40 200 400 1025 2049 268435456 ; do \
2020
echo "Unwind: $c" > $LOG.latest ; \
21-
./cbmc-binary --graphml-witness $LOG.witness --unwind $c --stop-on-fail $BIT_WIDTH --object-bits OBJ_BITS $PROPERTY --function $ENTRY $BM >> $LOG.latest 2>&1 ; \
21+
./cbmc-binary --graphml-witness $LOG.witness --unwind $c --stop-on-fail $BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY --function $ENTRY $BM >> $LOG.latest 2>&1 ; \
2222
ec=$? ; \
2323
if [ $ec -eq 0 ] ; then \
2424
if ! tail -n 10 $LOG.latest | grep -q "^VERIFICATION SUCCESSFUL$" ; then ec=1 ; else \
25-
./cbmc-binary --unwinding-assertions --unwind $c --stop-on-fail $BIT_WIDTH --object-bits OBJ_BITS $PROPERTY --function $ENTRY $BM > /dev/null 2>&1 || ec=42 ; \
25+
./cbmc-binary --unwinding-assertions --unwind $c --stop-on-fail $BIT_WIDTH --object-bits $OBJ_BITS $PROPERTY --function $ENTRY $BM > /dev/null 2>&1 || ec=42 ; \
2626
fi ; \
2727
fi ; \
2828
if [ $ec -eq 10 ] ; then \

tool-wrapper.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ process_graphml()
7474
fi
7575
}
7676

77-
OBJ_BITS="10"
77+
OBJ_BITS="11"
7878
BIT_WIDTH="--64"
7979
BM=""
8080
PROP_FILE=""
@@ -116,6 +116,7 @@ export PROPERTY
116116
export BIT_WIDTH
117117
export BM
118118
export PROP
119+
export OBJ_BITS
119120

120121
export GMON_OUT_PREFIX=`basename $BM`.gmon.out
121122

0 commit comments

Comments
 (0)