@giomasce Less snarky: I think they end up being pretty similar algorithms at the end of the day, just different formulations. We do the same sort of topological sorting, etc. I think the primary difference is in how you reason about the blocks and about the path variables.
I’ve considered switching Mesa to a tag that’s just the next block index. Right now, it’s a series of Booleans for which of the subsequent branches need to be taken. This saves you having to do a comparison against block indices before branching but means you have a bunch of Booleans live. It’s a trade off.