angr.analyses.identifier.func

angr.analyses.identifier.func.rand_str(length, byte_list=None)

Generate a random string of length characters, drawn from byte_list (or all 256 characters if not provided).

Return type:

str

angr.analyses.identifier.func.rand_bytes(length, byte_list=None)

Generate length random bytes, drawn from byte_list (or all 256 byte values if not provided).

Return type:

bytes

class angr.analyses.identifier.func.TestData

Bases: object

__init__(input_args, expected_output_args, expected_return_val, max_steps, preloaded_stdin=None, expected_stdout=None)
class angr.analyses.identifier.func.Func

Bases: object

__init__()
get_name()
num_args()
gen_input_output_pair()
var_args()
can_call_other_funcs()
pre_test(func, runner)

custom tests run before, return False if it for sure is not the function Use tests here to pick which version of the function :type func: :arg func: the cfg function it will be compared against :type runner: :arg runner: a runner to run the tests with :return: True if we should continue testing