mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-08-09 14:43:56 +00:00
* move CBMC proofs to FreeRTOS+ directory * Failing proofs corrected * ParseDNSReply proof added back * removed queue_init.h from -Plus/Test Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
50 lines
1.6 KiB
JSON
50 lines
1.6 KiB
JSON
{
|
|
"ENTRY": "ReadNameField",
|
|
|
|
################################################################
|
|
# This is the network buffer size. Set to any positive value.
|
|
"NETWORK_BUFFER_SIZE" : "10",
|
|
|
|
################################################################
|
|
# This is the size of the buffer into which the name is copied.
|
|
# Set to any positive value.
|
|
# In the source, NAME_SIZE=254 and NETWORK_BUFFER_SIZE >> NAME_SIZE
|
|
"NAME_SIZE": "10",
|
|
|
|
################################################################
|
|
# Loop prvReadNameField.0:
|
|
# "file lib/FreeRTOS-Plus-TCP/source/FreeRTOS_DNS.c line 725
|
|
# should be min of buffer size and name size
|
|
# but loop must be unwound at least once, so max of this and 1+1
|
|
"READLOOP0": "prvReadNameField.0",
|
|
"READLOOP0_UNWIND": "__eval max(2, min({NETWORK_BUFFER_SIZE}, {NAME_SIZE}))",
|
|
|
|
################################################################
|
|
# Loop prvReadNameField.1:
|
|
# "file lib/FreeRTOS-Plus-TCP/source/FreeRTOS_DNS.c line 715
|
|
# should be min of buffer size and name size
|
|
# but loop must be unwound at least twice, so max of this and 2+1
|
|
"READLOOP1": "prvReadNameField.1",
|
|
"READLOOP1_UNWIND": "__eval max(3, min({NETWORK_BUFFER_SIZE}, {NAME_SIZE}))",
|
|
|
|
################################################################
|
|
|
|
"CBMCFLAGS":
|
|
[
|
|
"--unwind 1",
|
|
"--unwindset {READLOOP0}:{READLOOP0_UNWIND},{READLOOP1}:{READLOOP1_UNWIND}"
|
|
],
|
|
|
|
"OBJS":
|
|
[
|
|
"$(ENTRY)_harness.goto",
|
|
"$(FREERTOS)/../FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.goto"
|
|
],
|
|
|
|
"DEF":
|
|
[
|
|
"NETWORK_BUFFER_SIZE={NETWORK_BUFFER_SIZE}",
|
|
"NAME_SIZE={NAME_SIZE}"
|
|
]
|
|
}
|