Hi there,
is there any tool to automatically create instances of cstructs? I was trying to use contract-random-generate
for that, but it doesn't seem to support it out of the box.
In more detail, I have create several (hundreds) of cstructs with ffi/unsafe. Now I'd like to create random valid values to each of those instructions. Purely random values are easy to create. I just allocate the cstruct instance and initialize it with garbage. But I would like to use the cstruct types to create a value. ctype->layout
gives me some useful information, but converts enums to integers, so I lose too much information. Is there a tool/lib/pattern that can help me here?