$file = ARGV[0]
$str = ARGF.read.sub(/^__END__.*\z/m, '')
puts '# ' + '-' * 70
puts "# target program: "
puts $str
$parsed = RubyVM::InstructionSequence.compile_file($file)
puts "# disasm result: "
puts $parsed.disasm