kerncraft/kernel.py
def _find_inner_most_loop(self, loop_nest):
        """Return inner most for loop in loop nest"""
        r = None
        for s in loop_nest:
            if type(s) is c_ast.For:
                return self._find_inner_most_loop(s) or s
            else:
                r = r or self._find_inner_most_loop(s)
        return r
def _find_inner_most_loop(self, loop_nest):
        r = None
        for s in loop_nest:
            if type(s) is c_ast.For:
                return self._find_inner_most_loop(s) or s
            else:
                r = r or self._find_inner_most_loop(s)
        return r
def _find_inner_most_loop ( self , loop_nest ) : r = None for s in loop_nest : if type ( s ) is c_ast . For : return self . _find_inner_most_loop ( s ) or s else : r = r or self . _find_inner_most_loop ( s ) return r
Return inner most for loop in loop nest
Return inner most for loop in loop nest