Find any value on the stack, move it to the top, and splitzero it. Returns nil if no value is found.
(b *txvmutil.Builder, stack []stackItem)
| 722 | // Find any value on the stack, move it to the top, and splitzero |
| 723 | // it. Returns nil if no value is found. |
| 724 | func zerovalToTopSplit(b *txvmutil.Builder, stack []stackItem) []stackItem { |
| 725 | stack = findAndRoll(b, stack, func(_ int, item stackItem) bool { |
| 726 | return len(item.anchor) != 0 |
| 727 | }) |
| 728 | if stack != nil { |
| 729 | return split(b, stack, 0) |
| 730 | } |
| 731 | return nil |
| 732 | } |
| 733 | |
| 734 | // Find a zero value on the stack, move it to the top |
| 735 | func zerovalToTop(b *txvmutil.Builder, stack []stackItem) []stackItem { |
no test coverage detected