Closed jubnzv closed 2 years ago
I don't really like this solution, because it is very inaccurate. It will generate a lot of false positives, like in the ark contract in our tests.
Probably, the better idea will be to write a simple flow-insensitive analysis that iterates statements and looks for reading from maps. Then it should find occurrences of pattern matching with this value or function calls that accepts an optional argument and uses pattern-matching on it.
This is a quick workaround that partially solves #1097