Source code for angr.analyses.data_dep.sim_act_location
[docs]classSimActLocation:""" Structure-like class used to bundle the instruction address and statement index of a given SimAction in order to uniquely identify a given SimAction """
# def __add__(self, other):# if not isinstance(other, int):# return## self._stmt_idx += otherDEFAULT_LOCATION=SimActLocation(0,0,0)# To be used when a location isn't necessary (eg, ConstantDepNode)
[docs]classParsedInstruction:""" Used by parser to facilitate linking with recent ancestors in an efficient manner """
[docs]def__init__(self,ins_addr:int,# Instruction that was parsedmin_stmt_idx:int,# Index of first statement in instructionmax_stmt_idx:int,):# Index of last statement in instructionself.ins_addr=ins_addrself.min_stmt_idx=min_stmt_idxself.max_stmt_idx=max_stmt_idx