Skip to content

Commit 783374b

Browse files
authored
Merge pull request #9 from peterschrammel/fix-2ls-status
Fix failure status types for 2LS
2 parents cf172d6 + 476e29c commit 783374b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tool-wrapper.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(/^CHECK\(init\((\S+)\(\)\),LTL\((\S+)\)\)$/) {
2929
parse_result()
3030
{
3131
if tail -n 50 $LOG.ok | \
32-
grep -Eq "^(\[.*\] |[[:space:]]*)__CPROVER_memory_leak == NULL$" ; then
32+
grep -Eq "^(\[.*\] .*__CPROVER_memory_leak == NULL|[[:space:]]*__CPROVER_memory_leak == NULL$)" ; then
3333
echo 'FALSE(valid-memtrack)'
3434
elif tail -n 50 $LOG.ok | \
3535
grep -Eq "^(\[.*\] |[[:space:]]*)dereference failure:" ; then
@@ -38,10 +38,10 @@ parse_result()
3838
grep -Eq "^(\[.*\] |[[:space:]]*)array.* upper bound in " ; then
3939
echo 'FALSE(valid-deref)'
4040
elif tail -n 50 $LOG.ok | \
41-
grep -Eq "^(\[.*\] |[[:space:]]*)double free$" ; then
41+
grep -Eq "^(\[.*\] double free|[[:space:]]*double free$)" ; then
4242
echo 'FALSE(valid-free)'
4343
elif tail -n 50 $LOG.ok | \
44-
grep -Eq "^(\[.*\] |[[:space:]]*)free argument has offset zero$" ; then
44+
grep -Eq "^(\[.*\] free argument has offset zero|[[:space:]]* free argument has offset zero$)" ; then
4545
echo 'FALSE(valid-free)'
4646
elif tail -n 50 $LOG.ok | \
4747
grep -Eq "^(\[.*\] |[[:space:]]*)arithmetic overflow on signed" ; then

0 commit comments

Comments
 (0)