crytic / tealer

Static Analyzer for Teal
GNU Affero General Public License v3.0
61 stars 14 forks source link

Add transaction-context printer to add possible group-sizes, group-indices to CFG #143

Closed S3v3ru5 closed 1 year ago

S3v3ru5 commented 1 year ago

This printer adds information about possible values of each transaction field. Currently supports group-size and group-indices. Possible values of a transaction field F are defined as: What values can F have so that the contract execution would not fail.

Possible values are defined for each basic block B: What values can F have so that contract execution starting from B would not fail.

This PR also updates behavior --print command line option. After this change, detectors are not ran by default when --print is used. Users can run detectors and printers but they should explicitly select the detectors and printers.

Printer Example: transaction-context