class SyntaxTree::YARV::SeaOfNodes::PhiNode

Phi nodes are used to represent the merging of data flow from multiple incoming blocks.

Attributes

id[R]
inputs[R]
outputs[R]

Public Class Methods

new(id) click to toggle source
# File lib/syntax_tree/yarv/sea_of_nodes.rb, line 39
def initialize(id)
  @inputs = []
  @outputs = []
  @id = id
end

Public Instance Methods

label() click to toggle source
# File lib/syntax_tree/yarv/sea_of_nodes.rb, line 45
def label
  "#{id} φ"
end