The inline pass should be updated to also inline functions that are essentially just atoms behind var indirections like the example above. Ideally it should work with more than one indirection and even if the atom is not in the left side of the redex.
Reproducing the behavior
HVM nets that are simple indirections were changed in hvm2 to be compiled as a LINK redex like this
However, the inline pass we use in Bend just looks directly for nets that are a single atom.
The inline pass should be updated to also inline functions that are essentially just atoms behind var indirections like the example above. Ideally it should work with more than one indirection and even if the atom is not in the left side of the redex.
For example, this should also be inlined
System Settings
Bend commit 0945efc
Additional context
No response