#NEWLINE# def getCodeIR( pool , method , opts ) : #NEWLINE# #INDENT# if ( method . code is not None ) : #NEWLINE# #INDENT# irdata = writeir . writeBytecode ( pool , method , opts ) #NEWLINE# if opts . inline_consts : #NEWLINE# #INDENT# stack . inlineConsts ( irdata ) #NEWLINE# #UNINDENT# if opts . copy_propagation : #NEWLINE# #INDENT# registers . copyPropagation ( irdata ) #NEWLINE# #UNINDENT# if opts . remove_unused_regs : #NEWLINE# #INDENT# registers . removeUnusedRegisters ( irdata ) #NEWLINE# #UNINDENT# if opts . dup2ize : #NEWLINE# #INDENT# stack . dup2ize ( irdata ) #NEWLINE# #UNINDENT# if irdata . prune_store_loads : #NEWLINE# #INDENT# stack . pruneStoreLoads ( irdata ) #NEWLINE# if opts . remove_unused_regs : #NEWLINE# #INDENT# registers . removeUnusedRegisters ( irdata ) #NEWLINE# #UNINDENT# #UNINDENT# if opts . sort_registers : #NEWLINE# #INDENT# registers . sortAllocateRegisters ( irdata ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# registers . simpleAllocateRegisters ( irdata ) #NEWLINE# #UNINDENT# return irdata #NEWLINE# #UNINDENT# return None