⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.127
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
typeprof-0.12.0
/
tools
/
View File Name :
setup-insns-def.rb
require "pp" unless ARGV[0] puts "usage: #$0 /path/to/ruby/trunk/insns.def" exit end r = %r( ^DEFINE_INSN\n (?
\w+)\n \((?
.*)\)\n \((?
.*)\)\n \((?
.*)\)\n (?://(?
.*)\n)? )x INSN_TABLE = {} Insn = Struct.new(:operands, :inputs, :outputs) File.read(ARGV[0]).scan(r) do name, operands, _inputs, _outputs, _inc = $~[:name], $~[:operands], $~[:inputs], $~[:outputs], $~[:inc] next if name.start_with?("opt_") next if name == "bitblt" || name == "answer" operands = operands.split(",").map {|s| s.strip }.map do |s| s.split(" ").map {|s| s.strip }[0] end INSN_TABLE[name.to_sym] = operands end target = File.join(__dir__, "../lib/typeprof/insns-def.rb") File.write(target, "TypeProf::INSN_TABLE = " + INSN_TABLE.pretty_inspect)