mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 06:35:19 -05:00
Extended precondition of vListInsertEnd to prove absence of overflows.
This commit is contained in:
parent
8976bd4d03
commit
9b2bb08cb5
1 changed files with 2 additions and 1 deletions
3
list.c
3
list.c
|
|
@ -95,7 +95,8 @@ void vListInsertEnd( List_t * const pxList,
|
||||||
// TODO: Adapt contract and proof to new version of predicates.
|
// TODO: Adapt contract and proof to new version of predicates.
|
||||||
|
|
||||||
/*@requires xLIST(pxList, ?len, ?idx, ?end, ?cells, ?vals, ?owners) &*&
|
/*@requires xLIST(pxList, ?len, ?idx, ?end, ?cells, ?vals, ?owners) &*&
|
||||||
xLIST_ITEM(pxNewListItem, ?val, _, _, ?ow, _);@*/
|
xLIST_ITEM(pxNewListItem, ?val, _, _, ?ow, _) &*&
|
||||||
|
len < INT_MAX;@*/
|
||||||
/*@ensures xLIST(pxList, len+1, idx, end, ?new_cells, ?new_vals, ?new_owners) &*&
|
/*@ensures xLIST(pxList, len+1, idx, end, ?new_cells, ?new_vals, ?new_owners) &*&
|
||||||
idx == end
|
idx == end
|
||||||
? (new_cells == append(cells, singleton(pxNewListItem)) &*&
|
? (new_cells == append(cells, singleton(pxNewListItem)) &*&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue