Closed jkbbwr closed 2 years ago
It seems that CBMC produced output that we didn't expect here. CBMC had some issues here in the past, but we were hoping to have ironed these out. Would it be possible to share the source code where you ended up with this result to help us debug?
https://gist.github.com/jkbbwr/d22fc3efcc01ffc4cd0a671fbdef904c
Here are all the XMLs produced. Is that enough?
I can reproduce with
cbmc-viewer coverage --coverage coverage.xml --srcdir /home/jakob/tmp
Can you provide the source file? Can you provide the output of cbmc --version
?
It looks like the version of cbmc that produced the coverage.xml file produced coverage goal blocks of the form
<goal description="block 1" id="main.coverage.1" status="SATISFIED">
<location file="main.c" function="main" line="6" working-directory="/home/jakob/tmp"/>
</goal>
In contrast, cbmc 5.60 on the FreeRTOS kernel example produces
<goal description="block 16 (lines /private/tmp/kernel/portable/MemMang/heap_5.c:pvPortMalloc:246)" id="pvPortMalloc.coverage.16" status="FAILED">
<location file="/private/tmp/kernel/portable/MemMang/heap_5.c" function="pvPortMalloc" line="246" working-directory="/private/tmp/kernel/cbmc/proofs/pvPortMalloc"/>
<basic_block_lines>
<line file="/private/tmp/kernel/portable/MemMang/heap_5.c" function="pvPortMalloc">246</line>
</basic_block_lines>
</goal>
@jkbbwr It seems you are using version 5.11 of CBMC. Would you mind upgrading to a more recent version (latest is 5.60) as available from https://github.com/diffblue/cbmc/releases?
Shall attempt and report back
@jkbbwr We'll assume this issue is fixed for you. Feel free to reopen if this isn't the case.
When using the instructions from the README.MD I get the following exception
CBMC Viewer 3.5