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
Yep, I was able to reproduce this. Haybale definitely supports functions returning void, but get_possible_return_values_of_func() seems like it barfs on void functions. Working on fixing this now.
I think that having size_in_bits() return 0 doesn't completely fix the problem, as size_in_bits() is sometimes used to determine the size of a Boolector BV, and trying to create a Boolector BV of size 0 is an error --- so I think either size_in_bits() needs a different way to indicate void type, or more consumers of size_in_bits() need to check whether it gave them 0 and proceed appropriately.
I wanted to test if a simple function can panic:
But haybale panicked at 'Not sure how to get the size of VoidType'. I guess that's because the function returns void and that's not supported.
I tried to patch it by setting the size of VoidType to 0 and it seems to work:
The text was updated successfully, but these errors were encountered: