The asm2wasm output labels the locals with symbols using the pattern $i<n> starting with $i1. The wast spec allows these to be named by index, starting at zero. If the naming also started at $i0 then the index would match, and this might be handy when comparing it to the encoded files.