-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support realloc #7
Comments
Hi Jonas, Thanks for all the issues you reported. I am currently working on some other aspects of the implementation so fixing all of them might take some time. If you would like me to prioritize some of them, please let me know. As far as supporting The reason I am asking is because adding support for |
Unfortunately, we are trying to verify dynamic arrays and some data structures that use them. Making sure that the code survives changing the pointers due to a realloc and so on is part of the verification, and we do need to copy the memory. The reason we would like to have an implementation of realloc in GenMC is that otherwise the client has to do the copying in a non-mixed size way, which means we need to reimplement a mock-realloc every time we use it for a different type. However it's not a high priority at the moment. As a side note, lack of mixed size accesses is the #1 pain point with GenMC at the moment, since they are very common in practice, both on racy and non-racy accesses. But at least to me it's not obvious how to extend GenMC to mixed-size accesses (efficiently). |
No description provided.
The text was updated successfully, but these errors were encountered: