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

Memory-efficient fixpoint computation

Sung Kook Kim, Arnaud J. Venet, Aditya V. Thakur

Abstract

Static program analysis is a critical tool for verifying software safety, yet it frequently encounters memory bottlenecks when processing complex codebases. This paper presents a domain-agnostic, mathematically optimal technique to minimize peak memory usage during fixpoint computation. By leveraging Weak Topological Ordering (WTO) to identify the lifecycle of abstract values, the proposed method enables early deallocation and assertion checking. Experimental results demonstrate up to a 24x reduction in peak memory usage with no loss in precision or performance.

Introduction

To formally verify program properties, such as the absence of buffer overflows, researchers employ abstract interpretation. This framework approximates program behavior by computing a "fixpoint"—a stable state where the equations representing program logic no longer change. The industry standard for this computation is Bourdoncle’s recursive iteration strategy, utilized in tools like Facebook Infer and NASA IKOS.

However, Bourdoncle’s strategy is traditionally memory-intensive. Standard implementations maintain abstract values for every program point throughout the entire analysis, only freeing memory after the global fixpoint is reached and assertions are checked. For large-scale software or high-precision mathematical domains, this leads to excessive RAM consumption, often resulting in analysis failure.

Methodology: Optimal Deallocation via WTO

The authors propose a memory-optimal configuration for Bourdoncle's strategy that deallocates abstract values the moment they become redundant. The core of this approach lies in analyzing the program's control-flow graph (CFG) using a Weak Topological Ordering (WTO).

Figure 1: Control-flow graphs with varying complexity: (a) no loops, (b) simple loops, and (c) nested loops.

As shown in Figure 1, program structures can range from simple linear paths to complex nested loops. The authors introduce a "nesting relation" algorithm that maps the lifecycle of variables within these structures.

  1. Early Deallocation: The algorithm identifies the earliest possible point an abstract value can be deleted without impacting future iterations of a loop.
  2. Early Assertion Checking: Safety assertions are verified as soon as the relevant code block or loop stabilizes. Once checked, the associated memory is immediately reclaimed.

This approach was implemented in MIKOS, an extension of NASA’s IKOS analyzer. The algorithm operates in almost-linear time, ensuring that the overhead of memory management does not negate the benefits.

Experimental Evaluation

MIKOS was evaluated across two primary tasks representing different real-world use cases:

  • Task T1 (Complex Verifications): 784 C benchmarks from SV-COMP 2019 using memory-intensive mathematical domains (Difference Bound Matrix and congruence).
  • Task T2 (Standard Analysis): 426 open-source C programs extracted from Arch Linux core packages (e.g., openssh, vim) using the interval abstract domain.

The results were significant. In Task T1, MIKOS achieved an average peak memory reduction of 24.57x. Notably, one benchmark that previously required 46 GB of RAM was successfully analyzed using only 56 MB. In Task T2, memory usage was reduced by an average of 2.29x, with ssh-keygen dropping from 30 GB to 1 GB.

Furthermore, MIKOS demonstrated a "free speedup" (1.29x on T1 and 1.08x on T2), likely due to improved CPU cache locality resulting from the drastically smaller memory footprint.

Conclusion and Future Work

This research provides a provably optimal strategy for managing memory in sequential fixpoint computations. The technique is domain-agnostic, meaning it works regardless of the underlying mathematical abstraction used. While currently focused on sequential analysis, future work aims to extend these principles to parallel algorithms using Weak Partial Orders (WPO) and to address dynamic dependency graphs in languages with complex dispatch mechanisms.

Summary updated

BibTeX
@article{kim2025memory,
  author = {Sung Kook Kim and Arnaud J. Venet and Aditya V. Thakur},
  title = {{Memory-efficient fixpoint computation}},
  journal = {Formal Methods Syst. Des.},
  year = {2025},
  doi = {10.1007/s10703-025-00471-8},
}
Figure