mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 06:35:19 -05:00
35 lines
No EOL
688 B
C
35 lines
No EOL
688 B
C
#ifndef LIST_PREDICATES_H
|
|
|
|
#define LIST_PREDICATES_H
|
|
|
|
/*
|
|
* The code below has been taken from:
|
|
* pull request:
|
|
* https://github.com/FreeRTOS/FreeRTOS/pull/836
|
|
* file:
|
|
* FreeRTOS/Test/VeriFast/include/proof/list.h
|
|
*
|
|
*/
|
|
|
|
/*@
|
|
predicate xLIST_ITEM(
|
|
struct xLIST_ITEM *n,
|
|
TickType_t xItemValue,
|
|
struct xLIST_ITEM *pxNext,
|
|
struct xLIST_ITEM *pxPrevious,
|
|
struct xLIST *pxContainer;)
|
|
=
|
|
n->xItemValue |-> xItemValue &*&
|
|
n->pxNext |-> pxNext &*&
|
|
n->pxPrevious |-> pxPrevious &*&
|
|
n->pvOwner |-> _ &*&
|
|
n->pxContainer |-> pxContainer;
|
|
|
|
// by Tobias Reinhard
|
|
predicate xList_gen(struct xLIST *l) =
|
|
l->uxNumberOfItems |-> _ &*&
|
|
l->pxIndex |-> _;
|
|
|
|
@*/
|
|
|
|
#endif /* LIST_PREDICATES_H */ |