crytic / tealer

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

Replace intc, bytec instructions with int and byte instructions #86

Open S3v3ru5 opened 2 years ago

S3v3ru5 commented 2 years ago

Teal allows declaring constants using intcblock which can be accessed later using intc {constant number} instruction. When detectors traverse the contract, they don't have access to integer value the intc refers to. This may result in False Positives as detectors can't reason about the values declared using intc. Same goes for bytecblock and bytec instructions.