MPS: posix_main.c specs that are currently possible #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Implented specs for all functions except for the following:
send_actuation_command
: uses malloc, Write CN library models as needed for VERSE examples VERSE-Toolchain#84read_actuation_command
: global variables and a scope issue, [CN] not clear how to use static local variables rems-project/cerberus#353update_sensor_errors
: contains a 2-level and 3-level array with the same variables used as indices in both, [CN] Difficult to work with multiple multidimensional arrays that share indices rems-project/cerberus#357update_sensors
: also [CN] Difficult to work with multiple multidimensional arrays that share indices rems-project/cerberus#357clear_screen
: need to claim that stdin is a valid pointer while usingaccesses
. Could just use take but it's a global. This is also affected by the spec chosen forfileno
read_rts_command
: usessscanf
and uses it at multiple types, [CN] Support stdio.h (skip variadic functions, define _IO_FILE type) rems-project/cerberus#301A solution to rems-project/cerberus#358 will also be needed instead of the stub declarations used currently.
Issue ticket number and link
#55
Checklist before requesting a review