This function pulls out bits to outermost dimension, and flips MSB for signed comparisons. See [`flip_msb`] and [`ComparisonResult`] for details.
(signed_comparison: bool, node: Node)
| 354 | /// |
| 355 | /// See [`flip_msb`] and [`ComparisonResult`] for details. |
| 356 | fn preprocess_input(signed_comparison: bool, node: Node) -> Result<Node> { |
| 357 | let node = if signed_comparison { |
| 358 | flip_msb(node)? |
| 359 | } else { |
| 360 | node |
| 361 | }; |
| 362 | pull_out_bits(node) |
| 363 | } |
| 364 | |
| 365 | fn preprocess_inputs(signed_comparison: bool, a: Node, b: Node) -> Result<(Node, Node)> { |
| 366 | let (a, b) = expand_to_same_dims(a, b)?; |
no test coverage detected