Commit 5024195
Fix FreeOp shape.
FreeOp type parsing and printing was inconsistent. FreeOp shape was invalid in cases where the operand mapping was not the identity. Change FreeOp so that:
* shape() returns `mapping(operand_shape)`, previously was `inverse_mapping(operand_shape)`
* the printed type is `mapping(operand_type)`, previously was `operand_type`
* parsed operand type remains `inverse_mapping(printed_type)`.
PiperOrigin-RevId: 3614984311 parent f91ac0e commit 5024195
2 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | | - | |
| 784 | + | |
| 785 | + | |
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
| |||
1648 | 1649 | | |
1649 | 1650 | | |
1650 | 1651 | | |
1651 | | - | |
1652 | | - | |
| 1652 | + | |
| 1653 | + | |
1653 | 1654 | | |
1654 | 1655 | | |
1655 | 1656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
0 commit comments