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
It finds a rewrite rule for 'Sub', but the enum it chooses for Inst.OpCode is '0' which is not from the set of possible OpCodes. This results from the fact that we are writing the sim.py functions using the if/elif/else pattern to emulate a case statement for Enum types
I suspect there is a similar issue for Sum types, but I do not have a particular example.
Possible Solutions:
Change simulation functions to use an elif on the last case of the Enum types.
Add in extra constraints in the rewrite rule generator to only work for valid Enum values. Downside is that this will increase the size/complexity of the SMT formula
The text was updated successfully, but these errors were encountered:
For example in
peak/tests/test_aadt_mapping.py
Line 13 in 2e6b964
It finds a rewrite rule for 'Sub', but the enum it chooses for Inst.OpCode is '0' which is not from the set of possible OpCodes. This results from the fact that we are writing the sim.py functions using the if/elif/else pattern to emulate a case statement for Enum types
I suspect there is a similar issue for Sum types, but I do not have a particular example.
Possible Solutions:
The text was updated successfully, but these errors were encountered: