CBMC proof for ulARPRemoveCacheEntryByMac (#198)
* Add Proof * update * Delete ulARPRemoveCacheEntryByMAC_harness.c * Changes after Mark's comments * Update after @yanjos-dev's comment * Remove confusing variable name * Update ulARPRemoveCacheEntryByMac_harness.cpull/203/head^2
parent
6eba275f89
commit
3c573ad091
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"ENTRY": "ulARPRemoveCacheEntryByMac",
|
||||||
|
"NUMBER_OF_CACHE_ENTRIES":6,
|
||||||
|
"CBMCFLAGS":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"OBJS":
|
||||||
|
[
|
||||||
|
"$(ENTRY)_harness.goto",
|
||||||
|
"$(FREERTOS)/../FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.goto"
|
||||||
|
],
|
||||||
|
"INSTFLAGS":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"DEF":
|
||||||
|
[
|
||||||
|
"ipconfigUSE_ARP_REMOVE_ENTRY=1",
|
||||||
|
"ipconfigARP_CACHE_ENTRIES={NUMBER_OF_CACHE_ENTRIES}"
|
||||||
|
],
|
||||||
|
"INC":
|
||||||
|
[
|
||||||
|
"$(FREERTOS)/tools/cbmc/include"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
/* Standard includes. */
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
/* FreeRTOS includes. */
|
||||||
|
#include "FreeRTOS.h"
|
||||||
|
|
||||||
|
/* FreeRTOS+TCP includes. */
|
||||||
|
#include "FreeRTOS_IP.h"
|
||||||
|
#include "FreeRTOS_ARP.h"
|
||||||
|
|
||||||
|
|
||||||
|
void harness() {
|
||||||
|
const MACAddress_t xMACAddress;
|
||||||
|
|
||||||
|
/* The pointer passed to ulARPRemoveCacheEntryByMac cannot be NULL
|
||||||
|
* (see the API definition). */
|
||||||
|
ulARPRemoveCacheEntryByMac( &xMACAddress );
|
||||||
|
}
|
Loading…
Reference in New Issue