Closed abhinandanudupa closed 1 year ago
Sorry for the delay in response, I had access issues for a while.
You can assume the topmost constraint in the constraint stack to contain such equalities. However, it might not contain that variable, since it's a constraint. One way is to annotate the storage locations used in all constraints (i.e. if you encounter a JUMPI, store all the variables used in the condition for JUMPI and annotate that structure onto the global state). If you can elaborate the goal of the module, I can help with a better solution. You can message me in Discord if you don't want to make it public. Join MythX discord server and hit me up.
Thank you for the response. I will like to text you on Discord.
Description
Hello, I am working on adding an analysis module to Mythril and I need help in finding out if any integer condition for example
a == 5.023
in aif...else
statement (or in arequire
?) exists. If there is such a condition, then:a
here which I can check in later on and,a != 5.023
has subsequently become true during the execution as it takes a valuea = 4.023
.