Tuple assignments, namely those that result from the inline tactic, can be an obstacle to applying the swap technique, as they bind together potentially unrelated sequences of statements.
The new feature would allow transforming a tuple assignment into a sequence of assignments for the individual components. This could and probably should due to potential impact on the cost logic be restricted to cases where the both the lvalue and the assigned expression are syntactically tuples, i.e., to cases where we have:
Tuple assignments, namely those that result from the inline tactic, can be an obstacle to applying the swap technique, as they bind together potentially unrelated sequences of statements.
The new feature would allow transforming a tuple assignment into a sequence of assignments for the individual components. This could and probably should due to potential impact on the cost logic be restricted to cases where the both the lvalue and the assigned expression are syntactically tuples, i.e., to cases where we have:
which would be inlined to