extract instruction sequence matcher, need to add more debugging info to
the instruction graph so I can understand what is going on