NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Speeding up Static Analysis with the Split Operator

Vincenzo Arceri, Greta Dolcetti, Enea Zaffanella

TL;DR

This paper introduces a new abstract operator called split designed to optimize static analysis based on abstract interpretation. By processing both branches of a conditional statement (the "then" and "else" paths) simultaneously, the split operator eliminates redundant computations, leading to significant speedups and memory savings—especially when using computationally expensive abstract domains like convex polyhedra.

What Problem Does This Paper Address?

Static analysis tools use abstract interpretation to predict program behavior without running the code. A core operation in this process is "filtering": when the analysis hits a branch (like an if (i < 50) statement), it must refine the current abstract state to reflect that the condition is true for one path and false for the other.

Traditionally, this is done by cloning the abstract state and applying a filter operator twice. However, for complex "relational" domains like convex polyhedra—which represent variables as multi-dimensional shapes—this is incredibly expensive. The two filter operations often repeat the same heavy mathematical lifting (calculating scalar products and geometric adjacency). This paper addresses this inefficiency by proposing a single split operator that factors out the shared work.

Methods

The authors propose the split operator: split: A × Pred → A × A. Instead of two independent calls, this operator takes one state and one predicate and returns two refined states.

Key technical contributions include:

  • Rational Split (Q-split): For variables treated as real numbers. It exploits the fact that a constraint and its complement share the same "slope" (coefficients). By calculating scalar products and geometric adjacency once, it can derive both resulting polyhedra at nearly the cost of one.
  • Integral Split (Z-split): For integer variables. This is trickier because the "else" branch of i < 50 is i ≥ 50, but for integers, the complement of 2i < 5 is actually 2i ≥ 6. The authors developed specialized algorithms to handle these "gaps" while still reusing as much computation as possible.
  • Integration: The operators were implemented in the PPLite library and integrated into the Clam/Crab static analysis framework. They even modified the framework's internal representation (CrabIR) to support a native split statement, replacing the old "clone-and-assume" approach.

Datasets

The researchers evaluated their approach using two sets of real-world C programs:

  1. PAGAI Benchmarks: 39 files from the SNU real-time benchmark suite (used for worst-case execution time analysis).
  2. Linux Drivers: 25 drivers randomly selected from the SVCOMP (Software Verification Competition) repository. These represent complex, "wild" code that is notoriously difficult to analyze efficiently.

Key Insights and Ideas

  • The "Aha" Moment: The most expensive part of polyhedral analysis isn't just adding a constraint; it's the "Chernikova conversion" used to maintain the geometric representation. Since a constraint and its negation are geometrically related, the most expensive steps (the adjacency tests) are identical for both branches.
  • CFG Simplification: Beyond just math, using a split operator simplifies the Control Flow Graph (CFG). Instead of creating extra nodes and edges to handle "assume" statements, the split operator allows the analyzer to branch directly, reducing the total number of invariants the tool needs to store in memory.
  • Precision Bonus: While the primary goal was speed, the Z-split operator occasionally produced more precise results than the standard approach because it handles integer-specific refinements more holistically during the split.

Key Results

The experimental results showed dramatic improvements when using the optimized split operator compared to the classical filter approach:

  • Speedup: The geometric mean of speedups was 1.25x for the PAGAI tests and 2.27x for the Linux drivers. Some specific cases (like the mdc and firewire drivers) saw speedups of 10x.
  • Memory Efficiency: Peak memory usage dropped significantly. The geometric mean of the memory reduction ratio was 1.73x for PAGAI and 3.13x for Linux drivers.
  • Scalability: The benefits were most pronounced in larger, more complex programs where the overhead of redundant polyhedral operations previously made analysis sluggish or impossible.

Limitations and Future Work

  • Floating-Point Constraints: The current prototype has limited support for floating-point datatypes, as the underlying theory focuses on linear constraints over rationals and integers.
  • Unsigned Integers: The tool currently ignores some potential splits involving unsigned comparisons to avoid complex signed/unsigned re-interpretations.
  • Tool-Specific Overhead: The authors noted that their specific integration into Clam/Crab introduced a "finalization phase" that accounted for 25-30% of analysis time, potentially masking even greater speedups.
  • Broader Applicability: Future work includes extending the split concept to non-numeric domains, such as string analysis (e.g., splitting on str.startsWith) or disjunctive domains (powersets of polyhedra).

Summary updated

BibTeX
@inproceedings{arceri2023speeding,
  author = {Vincenzo Arceri and Greta Dolcetti and Enea Zaffanella},
  title = {{Speeding up Static Analysis with the Split Operator}},
  booktitle = {Soap@pldi},
  year = {2023},
  doi = {10.1145/3589250.3596141},
}
Figure