Class: SyntaxTree::YARV::SeaOfNodes::SubGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/yarv/sea_of_nodes.rb

Overview

A subgraph represents the local data and control flow of a single basic block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(first_fixed, last_fixed, inputs, outputs) ⇒ SubGraph

Returns a new instance of SubGraph.



90
91
92
93
94
95
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 90

def initialize(first_fixed, last_fixed, inputs, outputs)
  @first_fixed = first_fixed
  @last_fixed = last_fixed
  @inputs = inputs
  @outputs = outputs
end

Instance Attribute Details

#first_fixedObject (readonly)

Returns the value of attribute first_fixed.



88
89
90
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 88

def first_fixed
  @first_fixed
end

#inputsObject (readonly)

Returns the value of attribute inputs.



88
89
90
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 88

def inputs
  @inputs
end

#last_fixedObject (readonly)

Returns the value of attribute last_fixed.



88
89
90
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 88

def last_fixed
  @last_fixed
end

#outputsObject (readonly)

Returns the value of attribute outputs.



88
89
90
# File 'lib/syntax_tree/yarv/sea_of_nodes.rb', line 88

def outputs
  @outputs
end