Use a scratch list to find the modified regs.
Make changeable into a type, therefore excluding constant, index_var, etc.
Don't require memory allocation from get_trimmed( )
Remove a memory allocation.
Do less memory allocation.