```ruby
##
# reversal.rb: decompiling YARV instruction sequences
#
# Copyright 2010 Michael J. Edgar, michael.j.edgar@dartmouth.edu
#
# MIT License, see LICENSE file in gem package

$:.unshift(File.dirname(__FILE__))

module Reversal
  autoload :Instructions, "reversal/instructions"
end

require 'reversal/ir'
require 'reversal/iseq'
require 'reversal/reverser'


module Reversal
  VERSION = "0.9.0"

  def decompile(iseq)
    Reverser.new(iseq).to_ir.to_s
  end
  module_function :decompile
end

module Reversal
  LOADED = true
end
```

Add plumbing for decompiling into the internal state table
user
```ruby
##
# reversal.rb: decompiling YARV instruction sequences
#
# Copyright 2010 Michael J. Edgar, michael.j.edgar@dartmouth.edu
#
# MIT License, see LICENSE file in gem package

$:.unshift(File.dirname(__FILE__))

module Reversal
  autoload :Instructions, "reversal/instructions"
end

require 'reversal/ir'
require 'reversal/iseq'
require 'reversal/reverser'


module Reversal
  VERSION = "0.9.0"

  @@klassmap = Hash.new do |h, k|
    h[k] = {
      :methods => [],
      :includes => [],
      :extends => [],
      :super => nil,
    }
  end

  def decompile(iseq)
    Reverser.new(iseq).to_ir.to_s
  end
  module_function :decompile

  def decompile_into(iseq, klass)
    decompiled = self.decompile(iseq)
    @@klassmap[klass][:methods] << decompiled
    maybe_dump_iseq(iseq)
  end
  module_function :decompile_into
end

module Reversal
  LOADED = true
end
```
assistant