class Crokus::CFG
Attributes
bbs[RW]
infos[RW]
name[RW]
starter[RW]
Public Class Methods
new(name)
click to toggle source
# File lib/crokus/cfg.rb, line 19 def initialize name @name=name @bbs=[] @infos={} @bbs << @starter=BasicBlock.new end
Public Instance Methods
<<(bb)
click to toggle source
# File lib/crokus/cfg.rb, line 34 def <<(bb) @bbs << bb end
each(&block)
click to toggle source
# File lib/crokus/cfg.rb, line 26 def each &block @bbs.each &block end
print(versbose=false)
click to toggle source
# File lib/crokus/cfg.rb, line 38 def print versbose=false CFGPrinter.new.print(self,5) end
size()
click to toggle source
# File lib/crokus/cfg.rb, line 30 def size @bbs.size end