Unverified bedrock2 wrapper functions are incorrect on divstep
Closed this issue · 2 comments
JasonGross commented
fiat-crypto/src/Bedrock/Standalone/Stringification.v
Lines 108 to 137 in 4be7fee
divstep contains mixed integers and lists in the output. Can @jadephilipoom or @andres-erbsen help me write a better version of this? Roughly, I need to somehow perform the same algorithm as
make_innames
+ make_outnames
+ translate_func
+ c_func
to print the function prototype, except instead of starting with a function nat -> string
and getting out ltype
s, I already have string
s where each ltype
should be (and they are not parameterized by nat
, but instead are already in type.for_each_lhs_of_arrow
/ type-indexed structures. How can I get this to work?andres-erbsen commented
I think https://github.com/mit-plv/bedrock2/blob/master/bedrock2/src/bedrock2/ToCString.v#L118-L129 is the relevant code in bedrock2 (and it could be changed if it would make things significantly easier)
JasonGross commented
I think this one is more of a concern:
fiat-crypto/src/Bedrock/Field/Translation/Func.v
Lines 43 to 87 in 0592f00