Sun May 19 08:50:35 EDT 2019

I'm going to need register allocation as well

If an array is used as an intermediate value between two loops but no
longer used after that, it should probably be reused.

This is similar to what Pd does.  In fact, the lta should be able to
represent the "block based" approach just fine.