Auto-generate the memory folding tables

I guess my big concern is how we find out when new rules need to be added to the generator to create correct tables. There are multiple different bugs already in just the examples I gave. I didn’t go through all of the tables.