1 # Generate diffs between FreeRTOS source and proofs
8 - [diff2html](https://diff2html.xyz/)
12 The following will extract per-function files from the original FreeRTOS source
13 implementation and the proof directory.
18 ./generate_diff_files.sh
19 # will extract to ./FreeRTOS-Kernel/generated and ./queue/generated and ./list/generated
22 Then use `diff` for a side-by-side comparison. Note that the `--color=always`
26 diff --color=always --width=$COLUMNS --suppress-common-lines --side-by-side FreeRTOS-Kernel/generated queue/generated | less -r
27 diff --color=always --width=$COLUMNS --suppress-common-lines --side-by-side FreeRTOS-Kernel/generated list/generated | less -r
30 Or generate a html report using `diff2html`:
33 diff -u FreeRTOS-Kernel/generated queue/generated | diff2html -i stdin
34 diff -u FreeRTOS-Kernel/generated list/generated | diff2html -i stdin
37 The expectation is that the proofs make minimal changes to the original source
38 implementation in the form of:
40 - VeriFast annotations `/*@...@*/` and `//*...`
41 - Additional comments explaining the proof `/*...*/`
42 - Flagged changes within `#if[n]def VERIFAST`