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
I find that, if a data structure contains enum field, such field won't be made symbolic although I tried to make all fields symbolic.
I totally understand enums are (immutable) objects and cannot be handled directly. And currently I have several makeshifts for this:
Add a wrapper for the target function.
Such wrapper has an integer parameter, which allows the SUT to assign different enum types accordingly. If we change the target function to this wrapper and make the integer parameter symbolic, the enum can be "symbolic" as well.
Add an integer field in the data structure to control the enum type accordingly.
This may require a deep modification for the SUT. I myself don't prefer it.
Call getTypeValue() to convert enum to its integer value.
Then it seems to work for me - the underlying integer value could be symbolic.
Please let me know whether I'm on the right way for this issue or if you have any more suggestions.
Perhaps the documentation can contain such guidance as well? (Please let me know if it already talks about such issue.)
Thanks!
The text was updated successfully, but these errors were encountered:
I find that, if a data structure contains enum field, such field won't be made symbolic although I tried to make all fields symbolic.
I totally understand enums are (immutable) objects and cannot be handled directly. And currently I have several makeshifts for this:
Such wrapper has an integer parameter, which allows the SUT to assign different enum types accordingly. If we change the target function to this wrapper and make the integer parameter symbolic, the enum can be "symbolic" as well.
This may require a deep modification for the SUT. I myself don't prefer it.
getTypeValue()
to convert enum to its integer value.Then it seems to work for me - the underlying integer value could be symbolic.
Please let me know whether I'm on the right way for this issue or if you have any more suggestions.
Perhaps the documentation can contain such guidance as well? (Please let me know if it already talks about such issue.)
Thanks!
The text was updated successfully, but these errors were encountered: