Helper for summing a sequence of values.
(head: DataValue, tail: SmallVec<[DataValue; 1]>)
| 36 | |
| 37 | // Helper for summing a sequence of values. |
| 38 | fn sum_unsigned(head: DataValue, tail: SmallVec<[DataValue; 1]>) -> ValueResult<u128> { |
| 39 | let mut acc = head; |
| 40 | for t in tail { |
| 41 | acc = DataValueExt::add(acc, t)?; |
| 42 | } |
| 43 | acc.into_int_unsigned() |
| 44 | } |
| 45 | |
| 46 | /// Collect a list of block arguments. |
| 47 | fn collect_block_args( |
no test coverage detected