Commit graph

3126 commits

Author SHA1 Message Date
Tobias Reinhard
eb1cfa53d3 Exposed running state macros to VF. 2022-12-02 11:54:12 -05:00
Tobias Reinhard
2c6d35943f Update tasks.c
Restored loop invariant at end of inner loop.
2022-12-01 15:08:43 -05:00
Tobias Reinhard
9b2bb08cb5 Extended precondition of vListInsertEnd to prove absence of overflows. 2022-12-01 14:57:13 -05:00
Tobias Reinhard
8976bd4d03 Adapted single-core proof of vListInitialise to new version of predicates. 2022-12-01 14:49:19 -05:00
Tobias Reinhard
0633baba2f Added single-core proof for vListInsertEnd by Aalok Thakkar and Nathan Chong. 2022-12-01 12:54:52 -05:00
Tobias Reinhard
122ecdeac0 Proved that call to uxListRemove in prvSelectHighestPriorityTaskis safe. 2022-12-01 12:48:43 -05:00
Tobias Reinhard
cd3fa4e577 Added adaptation of Aalok's and Nathan's single-core proof for uxListRemove 2022-12-01 11:47:52 -05:00
Tobias Reinhard
6f782b494a VF start script takes font size as 2nd param 2022-12-01 08:01:05 -05:00
Tobias Reinhard
fe5612cf4f Extended lock invariants to justify safe access to ready tasks as well as scheduled task. 2022-11-30 15:52:00 -05:00
Tobias Reinhard
78de786d89 Expanded lock invariant to give us access to shared segments of all ready TCBs. 2022-11-30 11:05:06 -05:00
Tobias Reinhard
e800ebd293 Exposed node owners in all predicates related to nodes. Adapted proofs to new predicates.
Changed predicates:
- `xLIST_ITEM`
- `DLS`
- `xLIST`
- `readyLists_p`
- `List_array_p`
2022-11-30 09:44:25 -05:00
Tobias Reinhard
70f1041778 Added documentation. 2022-11-29 15:55:27 -05:00
Tobias Reinhard
22dc5c1287 Added proof idea and TODOs. Need to refactor single-core list predicates. 2022-11-29 13:53:53 -05:00
Tobias Reinhard
e8b8234416 Renamed predicates to comply with naming conventions 2022-11-29 09:47:50 -05:00
Tobias Reinhard
014acb9a00 Refactored lock predicates to improve readability. 2022-11-29 09:37:23 -05:00
Tobias Reinhard
b310efa029 Added ready list lemmas. 2022-11-29 08:32:32 -05:00
Tobias Reinhard
2048fb85da Commented old opening and closing lemmas out and switched back from Z3 to VF standard SMT solver 2022-11-28 12:20:30 -05:00
Tobias Reinhard
c0df2a2894 Adapted proof of prvSelectHighestPriorityTask to use new DLS representation and opening & closing lemmas. 2022-11-28 10:55:39 -05:00
Tobias Reinhard
bb00bee690 Finished proof of DLS_close_2. 2022-11-28 09:16:08 -05:00
Tobias Reinhard
1393ae3c34 Set up lemma DLS_close_2 in accordance to DLS_open_2. Proved cases relating to empty prefix. 2022-11-28 08:44:58 -05:00
Tobias Reinhard
28fb658a59 Proved last case in lemma DLS_open_2. Will need to revisit once the lemma's postcondition has been strengtened. 2022-11-27 09:29:17 -05:00
Tobias Reinhard
53189c46d4 Added new version of DLS opening lemma that reduces case splits in DLS proofs. Proved 3/4 of it. 2022-11-26 12:15:34 -05:00
Tobias Reinhard
49af8fd30f Finished verification of iteration updates in prvSelectHighestPriorityTask. 2022-11-23 15:18:11 -05:00
Tobias Reinhard
9d1b47c5e5 Added lemmas to simplify opening and closing DLS for cases of the form pxTask->pxNext 2022-11-23 13:53:10 -05:00
Tobias Reinhard
f44473b47c Applied closing lemmas. 2022-11-23 11:34:47 -05:00
Tobias Reinhard
be9de4d570 Added lemma DLS_nonEndItem_next_close to help closing DLS opened with DLS_nonEndItem_next_open. 2022-11-23 11:28:27 -05:00
Tobias Reinhard
9e3ea9016e Added lemma DLS_end_next_close to help closing DLS opened with DLS_end_next_open 2022-11-23 08:31:07 -05:00
Tobias Reinhard
5e2f51caa8 Reformatted lemma proofs to improve readability. 2022-11-22 13:26:26 -05:00
Tobias Reinhard
397cb12abb Added lemmas to reason about updates to pointers in the ready list of the form pxTaskItem = pxTaskItem->pxNext 2022-11-22 13:08:22 -05:00
Tobias Reinhard
538f29caeb Closed some predicates to simplify proof state. 2022-11-22 10:17:37 -05:00
Tobias Reinhard
f7e537a19f Restructured proof.
New proof opens the DLS predicate to justify accesses to `pxTaskItem->next` and proves that `pxTaskItem->next` points to a valid list item.
2022-11-22 10:10:41 -05:00
Tobias Reinhard
49643b6f5e Partial proof justifying that updates of pxTaskItem in inner search loop in prvSelectHighestPriorityTask are safe. 2022-11-22 07:18:45 -05:00
Tobias Reinhard
2fd6bcc2d7 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".
2022-11-22 07:14:21 -05:00
Tobias Reinhard
35aef80072 Proved that pxTaskItem points to valid list item before inner search loop. 2022-11-21 14:02:23 -05:00
Tobias Reinhard
de3657239f Added minimal loop invariant to inner search loop in prvSelectHighestPriorityTask. 2022-11-21 11:32:25 -05:00
Tobias Reinhard
92a925bb59 Verified selection of initial task item in search loop in prvSelectHighestPriorityTask. 2022-11-21 09:45:22 -05:00
Tobias Reinhard
3fee2ec01f Added more DLS lemmas. 2022-11-21 08:16:28 -05:00
Tobias Reinhard
5cf8b4ed1c Added shared global variable xSchedulerRunning to task-isr lock invariant. 2022-11-21 08:06:19 -05:00
Tobias Reinhard
81355bc42f Added DLS lemmas related tosplit. 2022-11-21 08:05:32 -05:00
Tobias Reinhard
5b6a92f023 Added TODO 2022-11-18 16:47:47 -05:00
Tobias Reinhard
cf65065a0c Used single-core list predicate xLIST to express access permissions to ready lists in readyLists_p. 2022-11-18 16:27:38 -05:00
Tobias Reinhard
8f463be9d8 VF rewrite: Changed type of List_t.xListEnd to match expectations of single-core list proofs. 2022-11-18 15:39:41 -05:00
Tobias Reinhard
b1fc658413 Added single-core list predicates and proofs. Most proofs are commented out for the moment. 2022-11-18 15:38:32 -05:00
Tobias Reinhard
f5c0a64f86 Made isr lock predicate abstract. 2022-11-18 14:31:37 -05:00
Tobias Reinhard
02e019fe45 Highlighted that reused list proofs assume single-core setting. 2022-11-18 13:46:43 -05:00
Tobias Reinhard
1888670656 Removed unneeded precondition 2022-11-18 13:35:06 -05:00
Tobias Reinhard
e629319b9f Relaxed contract of xTaskGetCurrentTaskHandle. 2022-11-18 09:32:24 -05:00
Tobias Reinhard
c9e61fce49 Introduced initial formulation of predicate to capture shared ready lists. 2022-11-18 09:22:31 -05:00
Tobias Reinhard
6dcaef48d6 Added loop invariant to main search loop in prvSelectHighestPriorityTask. 2022-11-17 14:24:44 -05:00
Tobias Reinhard
9b2871bc92 Formulated first version of contract for prvSelectHighestPriorityTask and adapted proof of vTaskSwitchContext accordingly. 2022-11-17 12:55:01 -05:00