File src/plugins/built_in/abstract_objects/stub/ao_asmfile.luadoc

Declares methods that can be invoked on a binary file (instance of the 'asmfile' class)

Functions

asmfile:compute_post_dominance () Runs post dominance analysis
asmfile:functions () Iterates over functions of an asmfile
asmfile:get_arch_name () Returns the asmfile architecture name
asmfile:get_function_debug () Compute function start source line and function stop source line
asmfile:get_hash () Returns the hash value of an asmfile
asmfile:get_name () Returns the name of an asmfile
asmfile:get_nblocks () Returns the number of blocks in an asmfile (excluding virtual blocks, not exposed in LUA structures)
asmfile:get_nfunctions () Returns the number of functions in an asmfile
asmfile:get_ninsns () Returns the number of instructions in an asmfile
asmfile:get_nloops () Returns the number of loops in an asmfile
asmfile:get_project () Returns the project including a given asmfile
asmfile:get_uarch_id () Returns the identifier of micro-architecture used to get an asmfile
asmfile:get_uarch_name () Returns the name of micro-architecture used to get an asmfile
asmfile:tostring () Print "Asmfile: " (meta-method)


Functions

asmfile:compute_post_dominance ()
Runs post dominance analysis
asmfile:functions ()
Iterates over functions of an asmfile

Return value:

next function
asmfile:get_arch_name ()
Returns the asmfile architecture name

Return value:

architecture name (string)
asmfile:get_function_debug ()
Compute function start source line and function stop source line

Return value:

a table whose key is function ids and values are subtable with the following structure:
  • start: Function start source line
  • stop: Function stop source line. -1 if the value can be computed (last function of the source file)
  • fct: The function
  • file: Function source file string
asmfile:get_hash ()
Returns the hash value of an asmfile

Return value:

hash value (integer)
asmfile:get_name ()
Returns the name of an asmfile

Return value:

name (string)
asmfile:get_nblocks ()
Returns the number of blocks in an asmfile (excluding virtual blocks, not exposed in LUA structures)

Return value:

number of blocks
asmfile:get_nfunctions ()
Returns the number of functions in an asmfile

Return value:

number of functions
asmfile:get_ninsns ()
Returns the number of instructions in an asmfile

Return value:

number of instructions
asmfile:get_nloops ()
Returns the number of loops in an asmfile

Return value:

number of loops
asmfile:get_project ()
Returns the project including a given asmfile

Return value:

a project
asmfile:get_uarch_id ()
Returns the identifier of micro-architecture used to get an asmfile

Return value:

Identifier of the micro-architecture (integer)
asmfile:get_uarch_name ()
Returns the name of micro-architecture used to get an asmfile

Return value:

name of the micro-architecture (string)
asmfile:tostring ()
Print "Asmfile: " (meta-method)

Valid XHTML 1.0!