Skip to content

Commit 9dfa5f8

Browse files
authored
Merge pull request #24 from lucasccordeiro/lucas/fix/object-bits
Increase the number of objects
2 parents 756b199 + 3fafce1 commit 9dfa5f8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
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 $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 $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 $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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ ulimit -v 15000000 ; \
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 $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 $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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ process_graphml()
7474
fi
7575
}
7676

77+
OBJ_BITS="10"
7778
BIT_WIDTH="--64"
7879
BM=""
7980
PROP_FILE=""

0 commit comments

Comments
 (0)