2

I'm trying to extract (long) repeating blocks of the same code, and have the regular flow of execution jump to/from those block when needed.
This is done over an educational assembly language called Hack.
How can I extract those blocks.
I understand it's an instance of longest-common-subsequence problem, but I don't see how to approach this.
I have seen, this, this, and a couple other - no help.

Any pointers, be they -- solution course, relevant reads, or even libraries -- are much appreciated.

Community
  • 1
  • 1
Trevor
  • 1,858
  • 4
  • 21
  • 28

0 Answers0