mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 06:35:19 -05:00
Updated predicate xLIST_ITEM to jeep up with breaking VF change.
VeriFast now ensures that no uninitialised values are read. `x |-> _` is interpreted as "uninitialised", `x |-> ?v` is interpreted as "initialised".
This commit is contained in:
parent
35aef80072
commit
2fd6bcc2d7
1 changed files with 34 additions and 13 deletions
|
|
@ -128,8 +128,28 @@
|
||||||
} List_t;
|
} List_t;
|
||||||
#endif /* VERIFAST_SINGLE_CORE */
|
#endif /* VERIFAST_SINGLE_CORE */
|
||||||
|
|
||||||
/*@
|
#ifndef VERIFAST_SINGLE_CORE
|
||||||
predicate xLIST_ITEM(
|
/* Reason for deletion:
|
||||||
|
* Breaking change in VeriFast. VeriFast now ensures that no uninitialised
|
||||||
|
* values are read. `x |-> _` is interpreted as "uninitialised",
|
||||||
|
* `x |-> ?v` is interpreted as "initialised".
|
||||||
|
*/
|
||||||
|
/*@
|
||||||
|
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 |-> ?gOwner &*&
|
||||||
|
n->pxContainer |-> pxContainer;
|
||||||
|
@*/
|
||||||
|
#else
|
||||||
|
/*@
|
||||||
|
predicate xLIST_ITEM(
|
||||||
struct xLIST_ITEM *n,
|
struct xLIST_ITEM *n,
|
||||||
TickType_t xItemValue,
|
TickType_t xItemValue,
|
||||||
struct xLIST_ITEM *pxNext,
|
struct xLIST_ITEM *pxNext,
|
||||||
|
|
@ -140,7 +160,8 @@ predicate xLIST_ITEM(
|
||||||
n->pxPrevious |-> pxPrevious &*&
|
n->pxPrevious |-> pxPrevious &*&
|
||||||
n->pvOwner |-> _ &*&
|
n->pvOwner |-> _ &*&
|
||||||
n->pxContainer |-> pxContainer;
|
n->pxContainer |-> pxContainer;
|
||||||
@*/
|
@*/
|
||||||
|
#endif /* VERIFAST_SINGLE_CORE */
|
||||||
|
|
||||||
/* Ferreira et al. (STTT'14) doubly-linked list segment (DLS). */
|
/* Ferreira et al. (STTT'14) doubly-linked list segment (DLS). */
|
||||||
/*@
|
/*@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue