class Plympton::Function
Class responsible for parsing a YAML serialized function object
Attributes
argSize[RW]
YAML Entries
chunkList[RW]
YAML Entries
cyclomaticComplexity[RW]
YAML Entries
endAddress[RW]
YAML Entries
frameSize[RW]
YAML Entries
isImport[RW]
YAML Entries
localVarSize[RW]
YAML Entries
markovIdx[RW]
name[RW]
YAML Entries
numArgs[RW]
YAML Entries
numChunks[RW]
YAML Entries
numInstructions[RW]
numLocalVars[RW]
YAML Entries
numTransitions[RW]
savedRegSize[RW]
YAML Entries
startAddress[RW]
YAML Entries
Public Instance Methods
set_total_number_of_instructions()
click to toggle source
# File lib/plympton/function.rb, line 16 def set_total_number_of_instructions() @numInstructions = 0 @chunkList.each do |chunk| chunk.blockList.each do |block| @numInstructions = @numInstructions + block.numInstructions end end end
to_s()
click to toggle source
Convenience method for printing a function @return [String] A string representation of a function object
# File lib/plympton/function.rb, line 27 def to_s() "#{self.class} (#{self.__id__}):#{name}" end
to_yaml_type()
click to toggle source
Defines the objects YAML tag @return [String] A string signifying the start of an object of this class
# File lib/plympton/function.rb, line 12 def to_yaml_type "!fuzz.io,2011/Function" end