#NEWLINE# def _normalize_stmt_idx( self , block_addr , stmt_idx ) : #NEWLINE# #INDENT# "\n        For each statement ID, convert 'default' to (last_stmt_idx+1)\n\n        :param block_addr:  The block address.\n        :param stmt_idx:    Statement ID.\n        :returns:           New statement ID.\n        " #NEWLINE# if ( type ( stmt_idx ) in ( int , long ) ) : #NEWLINE# #INDENT# return stmt_idx #NEWLINE# #UNINDENT# if ( stmt_idx == 'default' ) : #NEWLINE# #INDENT# vex_block = self . project . factory . block ( block_addr ) . vex #NEWLINE# return len ( vex_block . statements ) #NEWLINE# #UNINDENT# raise AngrBackwardSlicingError ( ( 'Unsupported statement ID "%s"' % stmt_idx ) )