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
Code with require tends to produce tons of paths that are reverting and are not necessarily interesting for the users. It would be nice to have a mode where Manticore would discard these paths automatically.
This mode should be added to --quick-mode.
A naive plugin implementation (thanks @feliam) is:
This assumes that the REVERT is 4 offset after the JUMPI. It was tested with solidity 0.5.12, and it might not work with other compiler versions. It does not work for require(cond, text).
The real implementation should check the latest instruction of each basic blocks to know if the branch is to be discarded.
The text was updated successfully, but these errors were encountered:
Code with
require
tends to produce tons of paths that are reverting and are not necessarily interesting for the users. It would be nice to have a mode where Manticore would discard these paths automatically.This mode should be added to
--quick-mode
.A naive plugin implementation (thanks @feliam) is:
This assumes that the REVERT is 4 offset after the JUMPI. It was tested with solidity 0.5.12, and it might not work with other compiler versions. It does not work for
require(cond, text)
.The real implementation should check the latest instruction of each basic blocks to know if the branch is to be discarded.
The text was updated successfully, but these errors were encountered: