8000 🚀 [Feature Request] Support Saving and Loading PAG Cache to Accelerate Repeated Analysis · Issue #1731 · SVF-tools/SVF · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
🚀 [Feature Request] Support Saving and Loading PAG Cache to Accelerate Repeated Analysis #1731
Open
@101010zyl

Description

@101010zyl

Motivation

Currently, SVF constructs the Pointer Assignment Graph (PAG) from LLVM IR every time. For large codebases, this process can be time-consuming, especially when developers iterate frequently or conduct downstream analysis (e.g., on value-flow or memory errors). I propose adding a functionality to serialize and reuse PAG results via a structured cache file (e.g., JSON or protobuf format), similar in spirit to CodeQL databases.

Proposed Features

  1. Cache PAG to a dir like .cache through command line options or automatically. Or explictly create PAG database like CodeQL databases.
  2. Load cached PAG when starting analysis through command line options or automatically. Or launch analysis from existing database.

Benefits

  • Save time for repeated runs, especially on large projects.

Implementation Plan

Not sure. I'm reading the source code and think about where to add code. May need discussion.

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

      0