You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rationale: Many programming languages (in which we would like to write high-assurance code) have support for sized integer types, and being able to use these in array parameters would be very helpful.
They seem to be supported fine using CType when not used in arrays, maybe the fix is as easy as adding CType to the param_type macro in camkes/templates/arch-definitions.thy?
Currently I'm using a workaround passing char instead of uint8_t, but the latter conveys much more cleanly what I want to express (plus char may or may not be unsigned, and unsigned char is not supported).
The text was updated successfully, but these errors were encountered:
ThreeFx
changed the title
Support <stdint.h> for array parameters
Support <stdint.h> for array parameters in cdl-refine spec/proofs
Mar 30, 2021
Rationale: Many programming languages (in which we would like to write high-assurance code) have support for sized integer types, and being able to use these in array parameters would be very helpful.
They seem to be supported fine using
CType
when not used in arrays, maybe the fix is as easy as addingCType
to theparam_type
macro incamkes/templates/arch-definitions.thy
?Currently I'm using a workaround passing
char
instead ofuint8_t
, but the latter conveys much more cleanly what I want to express (pluschar
may or may not be unsigned, andunsigned char
is not supported).The text was updated successfully, but these errors were encountered: