IsPush specifies if an opcode is a PUSH opcode.
()
| 25 | |
| 26 | // IsPush specifies if an opcode is a PUSH opcode. |
| 27 | func (op OpCode) IsPush() bool { |
| 28 | switch op { |
| 29 | case PUSH1, PUSH2, PUSH3, PUSH4, PUSH5, PUSH6, PUSH7, PUSH8, PUSH9, PUSH10, PUSH11, PUSH12, PUSH13, PUSH14, PUSH15, PUSH16, PUSH17, PUSH18, PUSH19, PUSH20, PUSH21, PUSH22, PUSH23, PUSH24, PUSH25, PUSH26, PUSH27, PUSH28, PUSH29, PUSH30, PUSH31, PUSH32: |
| 30 | return true |
| 31 | } |
| 32 | return false |
| 33 | } |
| 34 | |
| 35 | // IsStaticJump specifies if an opcode is JUMP. |
| 36 | func (op OpCode) IsStaticJump() bool { |
no outgoing calls
no test coverage detected