Skip to content

Commit f516277

Browse files
committed
more comments
1 parent b1f9e46 commit f516277

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/cbmc/proofs/ARP/ARPAgeCache/ARPAgeCache_harness.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ BaseType_t NetworkInterfaceOutputFunction_Stub( struct xNetworkInterface * pxDes
2929
{
3030
__CPROVER_assert( pxDescriptor != NULL, "The network interface cannot be NULL." );
3131
__CPROVER_assert( pxNetworkBuffer != NULL, "The network buffer descriptor cannot be NULL." );
32+
__CPROVER_assert( pxNetworkBuffer->pucEthernetBuffer != NULL, "The Ethernet buffer cannot be NULL." );
3233
return 0;
3334
}
3435

test/cbmc/proofs/ARP/ARPProcessPacket/ARPProcessPacket_harness.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,7 @@ void harness()
7171
__CPROVER_assume( xNetworkBuffer2.pxEndPoint != NULL );
7272
xNetworkBuffer2.pxEndPoint->pxNext = NULL;
7373

74+
/* eARPProcessPacket will be called in the source code only after checking if
75+
xNetworkBuffer2.pucEthernetBuffer is not NULL, hence, __CPROVER_assume( xBuffer != NULL ); */
7476
eARPProcessPacket( &xNetworkBuffer2 );
7577
}

0 commit comments

Comments
 (0)