#NEWLINE# def extract_reduce( self , stmt ) : #NEWLINE# #INDENT# last_stmt = stmt . body [ ( - 1 ) ] #NEWLINE# if ( last_stmt . __class__ is not If ) : #NEWLINE# #INDENT# return stmt #NEWLINE# #UNINDENT# cond = stmt . cond #NEWLINE# if ( cond . __class__ is Var ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# other_stmts = stmt . body [ : ( - 1 ) ]