Method: Tainted::DataFlow#generate

Defined in:
lib/tainted/dataflow.rb

#generateObject



13
14
15
16
17
18
# File 'lib/tainted/dataflow.rb', line 13

def generate
  @iseq = RubyVM::InstructionSequence.compile_file(@file_path)
  @iseq = SyntaxTree::YARV::InstructionSequence.from(@iseq.to_a)
  @cfg = SyntaxTree::YARV::ControlFlowGraph.compile(@iseq)
  @dfg = SyntaxTree::YARV::DataFlowGraph.compile(@cfg)
end