(session, db_kb: 'DbKnowledgeBase', kb: 'KnowledgeBase')
return funcs
:param session:
        :param DbKnowledgeBase db_kb:
        :param KnowledgeBase kb:
        :return:                        A loaded function manager.
def load(session, db_kb: 'DbKnowledgeBase', kb: 'KnowledgeBase'):
        """

        :param session:
        :param DbKnowledgeBase db_kb:
        :param KnowledgeBase kb:
        :return:                        A loaded function manager.
        """

        funcs = FunctionManager(kb)

        db_funcs = session.query(DbFunction).filter_by(kb=db_kb)
        all_func_addrs = set(map(lambda x: x[0], session.query(DbFunction.addr).filter_by(kb=db_kb)))

        for db_func in db_funcs:
            func = Function.parse(db_func.blob, function_manager=funcs, project=kb._project,
                                  all_func_addrs=all_func_addrs)
            funcs[func.addr] = func

        funcs.rebuild_callgraph()

        return funcs
def load ( session , db_kb : 'DbKnowledgeBase' , kb : 'KnowledgeBase' ) : funcs = FunctionManager ( kb ) db_funcs = session . query ( DbFunction ) . filter_by ( kb = db_kb ) all_func_addrs = set ( map ( lambda x : x [ 0 ] , session . query ( DbFunction . addr ) . filter_by ( kb = db_kb ) ) ) for db_func in db_funcs : func = Function . parse ( db_func . blob , function_manager = funcs , project = kb . _project , all_func_addrs = all_func_addrs ) funcs [ func . addr ] = func funcs . rebuild_callgraph ( ) return funcs