Same Engine, Multiple Gears: Parallelizing Fixpoint Iteration at Different Granularities (Extended Version)

Ali Rasim Kocal, Michael Schwarz, Simmo Saan, Helmut Seidl

TL;DR

This paper tackles the challenge of speeding up static analysis by parallelizing its core component: fixpoint iteration. Instead of a one-size-fits-all approach, they introduce a flexible fixpoint engine that can adapt its "gear" (task granularity) for optimal parallel performance. They present two novel parallelization strategies, "immediate" and "independent," and demonstrate significant speedups on real-world programs.

What Problem Does This Paper Address?

Static analysis, a crucial technique for finding bugs and understanding program behavior without running code, relies heavily on fixpoint iteration to compute program invariants. This process can be computationally expensive, especially for large and complex programs. While parallelizing this core computation is a natural way to speed things up, existing approaches often "hardcode" the granularity of parallel tasks (e.g., always parallelizing by threads or procedures). This inflexibility means they might not be optimal for all programs or analysis scenarios. The authors aim to create a more adaptable parallel fixpoint engine that can dynamically adjust its task granularity, offering better performance across a wider range of applications.

Methods

The paper builds upon an existing top-down fixpoint solver called TD, enhancing it into a version called TLTD (Toplevel TD). TLTD introduces a top-level workset that serves as the foundation for parallelization. The key innovation lies in two distinct parallelization philosophies:

  • Immediate Approach: This strategy uses a single, shared, thread-safe data structure to store all solver state. Tasks (workers) access and modify this shared state directly. To ensure correctness, it employs a transactional model with compare-and-swap (CAS) operations to manage concurrent access to individual unknowns. This approach aims to avoid redundant computations by ensuring at most one worker operates on an unknown at a time, but incurs synchronization overhead.
  • Independent Approach: In contrast, this method gives each worker its own local copy of the solver state. Communication between tasks, particularly for shared global variables, is managed through a publish/subscribe mechanism. This reduces synchronization needs to only the global updates, potentially allowing for more concurrent work but risking duplicated computations.

Both approaches utilize a task pool to schedule work onto a fixed number of worker threads. The granularity of tasks is determined by "root unknowns," which are dynamically identified, often corresponding to program thread creation points or function entry points.

Datasets

The authors evaluated their approaches on a benchmark suite comprising:

  • 47 programs from the SV-Comp and Concrat suites.
  • 4 open-source Unix utilities (aget, ctrace, knot, pfscan).

These benchmarks range from 23 to 12.5k logical lines of code. The experiments were conducted on Ubuntu 24.04.2 LTS with two Intel Xeon Platinum 8260 CPUs (24 cores each).

Key Insights and Ideas

  • "Multiple Gears" for Parallelism: The core idea of a fixpoint engine being "parametric in task granularity" is powerful. It means the engine can adapt its parallelism strategy, much like a car can switch gears, to suit different program structures and analysis needs.
  • Trade-offs in Synchronization: The "immediate" and "independent" approaches highlight a fundamental trade-off in parallel systems: minimizing synchronization overhead versus avoiding redundant work. The immediate approach prioritizes correctness and avoiding recomputation at the cost of more synchronization, while the independent approach sacrifices some redundancy for less synchronization.
  • Granularity Matters: The choice of "demand points" (where to start parallel exploration) significantly impacts performance. Placing demands at thread creation points is generally effective, but exploring function call sites can sometimes lead to better scaling, albeit with increased overhead.
  • Sequential Improvements Pave the Way: Even before parallelization, optimizing the underlying solver's data structures (merging them into a single hashmap) provided a measurable speedup, demonstrating the value of foundational improvements.

Key Results

  • Sequential Speedup: The optimized sequential solver (TLTD) achieved an average speedup of 1.85x compared to the original TD, with some cases reaching up to 10x.
  • Parallel Speedups:
    • Immediate Approach: Achieved average speedups of 1.7x, 2.01x, and 2.68x with 2, 4, and 8 workers, respectively, compared to a single worker.
  • Independent Approach: Achieved average speedups of 1.83x, 2.5x, and 2.87x with 2, 4, and 8 workers, respectively.
  • Overall, both approaches showed significant speedups, generally increasing with more workers, though speedups tended to diminish beyond four workers for most benchmarks.
  • Approach Comparison: The two parallelization approaches performed similarly, with neither consistently dominating the other. For finer granularities (like procedure-level), the "immediate" approach seemed slightly preferable.
  • Precision: The parallelized solvers generally produced results with comparable precision to the unmodified TD, with only a small fraction of unknowns showing different values, and rarely incomparable ones.

Limitations and Future Work

  • Benchmark Representativeness: The authors acknowledge that the representativeness of their benchmark suite is a potential limitation. While they included diverse sources, it's always a challenge to cover all possible program types and analysis scenarios.
  • Non-determinism: Parallel execution can introduce non-deterministic behavior, meaning results might vary slightly between runs due to scheduling variations. The authors addressed this by reporting averaged results and noting that all results are guaranteed to be sound.
  • Future Work:
    • Exploring further possibilities for demand placement (granularity control) based on program characteristics.
  • Investigating the impact of different abstract domains and analysis configurations on parallel performance.
  • Extending the work to other programming languages and analysis types.

Summary updated

BibTeX
@inproceedings{kocal2026same,
  author = {Ali Rasim Kocal and Michael Schwarz and Simmo Saan and Helmut Seidl},
  title = {{Same Engine, Multiple Gears: Parallelizing Fixpoint Iteration at Different Granularities (Extended Version)}},
  booktitle = {Open MIND},
  year = {2026},
  doi = {10.48550/arxiv.2602.06680},
}

Loading related content...

Figure