class VM
  class InstructionSequence
    def ludicrous_compile(function, env)
      self.each do |instruction|
        # env.stack.sync_sp
        # function.debug_inspect_object instruction
        env.make_label
        instruction.ludicrous_compile(function, env)
        env.pc.advance(instruction.length)
        # env.stack.sync_sp
        # env.stack.debug_inspect
      end
    end
  end
end


class VM
  class InstructionSequence
    def ludicrous_compile(function, env)
      self.each do |instruction|
        # env.stack.sync_sp
        # function.debug_inspect_object instruction
        env.make_label
        env.pc.advance(instruction.length)
        instruction.ludicrous_compile(function, env)
        # env.stack.sync_sp
        # env.stack.debug_inspect
      end
    end
  end
end


Advance PC before compiling each instruction.
Advance PC before compiling each instruction.
