isOpcodeConditional returns whether or not the opcode is a conditional opcode which changes the conditional execution stack when executed.
(opcode byte)
| 391 | // isOpcodeConditional returns whether or not the opcode is a conditional opcode |
| 392 | // which changes the conditional execution stack when executed. |
| 393 | func isOpcodeConditional(opcode byte) bool { |
| 394 | switch opcode { |
| 395 | case OP_IF: |
| 396 | return true |
| 397 | case OP_NOTIF: |
| 398 | return true |
| 399 | case OP_ELSE: |
| 400 | return true |
| 401 | case OP_ENDIF: |
| 402 | return true |
| 403 | default: |
| 404 | return false |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | // checkMinimalDataPush returns whether or not the provided opcode is the |
| 409 | // smallest possible way to represent the given data. For example, the value 15 |
no outgoing calls
no test coverage detected
searching dependent graphs…