Skip to content

Is the API outdated? #34

@Ssh1y

Description

@Ssh1y

I read the API documentation in the wiki and it says:

functions in pysvf
get_pag(bitcodePath: str, buildSVFG: bool = False) -> SVFIR
Analyze LLVM bitcode and return SVFIR. If buildSVFG is True, also builds sparse value flow graph.

get_icfg() -> ICFG
Get the current interprocedural control flow graph

get_callgraph() -> CallGraph
Get the current call graph

get_svfg() -> "SVFG"
Get the current sparse value flow graph if it was built

get_module_name() -> str
Get the name of the last analyzed module

release_pag(pag: SVFIR) -> None
Release the SVFIR, if not, you cannot load another module

But I see the package name in Pysvf is like this:

from .pysvf import (
    releasePAG,
    getPAG,
    getICFG,
    getSVFG,
    getCallGraph,
    getModuleName,
    ICFGNode,
    IntraICFGNode,
    InterICFGNode,
    FunEntryICFGNode,
    FunExitICFGNode,
    CallICFGNode,

So does this mean that a lot of the API names in the wiki have been renamed but not changed?

Looking forward to your answer, thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions