#NEWLINE# def _get_acceptable_constant_differences( self , block_a , block_b ) : #NEWLINE# #INDENT# acceptable_differences = set ( ) #NEWLINE# acceptable_differences . add ( 0 ) #NEWLINE# block_a_base = block_a . instruction_addrs [ 0 ] #NEWLINE# block_b_base = block_b . instruction_addrs [ 0 ] #NEWLINE# acceptable_differences . add ( ( block_b_base - block_a_base ) ) #NEWLINE# for ( target_a , target_b ) in zip ( block_a . call_targets , block_b . call_targets ) : #NEWLINE# #INDENT# if ( ( target_a is None ) or ( target_b is None ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# acceptable_differences . add ( ( target_b - target_a ) ) #NEWLINE# acceptable_differences . add ( ( ( target_b - block_b_base ) - ( target_a - block_a_base ) ) ) #NEWLINE# #UNINDENT# if ( ( '.bss' in self . _project_a . loader . main_bin . sections_map ) and ( '.bss' in self . _project_b . loader . main_bin . sections_map ) ) : #NEWLINE# #INDENT# bss_a = self . _project_a . loader . main_bin . sections_map [ '.bss' ] . min_addr #NEWLINE# bss_b = self . _project_b . loader . main_bin . sections_map [ '.bss' ] . min_addr #NEWLINE# acceptable_differences . add ( ( bss_b - bss_a ) ) #NEWLINE# acceptable_differences . add ( ( ( bss_b - block_b_base ) - ( bss_a - block_a_base ) ) ) #NEWLINE# #UNINDENT# return acceptable_differences