Published June 28, 2025 | Version v1
Software Open

Memory-Safety Verification of Open Programs With Angelic Assumptions

Authors/Creators

  • 1. ROR icon Indian Institute of Technology Kanpur

Description

Artifact for evaluation in OOPSLA 2425. 

Abstract:

An open program is one for which the complete source code is not available, which is a reality for real-world program verification. Software verification tools tend to assume the worst about any unconstrained behavior, and this can yield an enormous number of spurious warnings for open programs. For any serious verification effort, the engineer must invest time up-front in building a suitable model (or mock) of any missing code, which is time-consuming and error-prone. Inaccuracies in the mocks can lead to incorrect verification results.

In this paper, we demonstrate a technique that is capable of distinguishing between false positives and actual bugs from potential memory-safety violations in an open program with high accuracy. Central to the technique is the ability of making angelic assumptions about missing code. To accomplish this, we first mine a set of idiomatic patterns in buffer-manipulating programs using a large language model (LLM). This is complemented by a formal synthesis strategy that performs property-directed reasoning to select, adapt, and instantiate these idiomatic patterns into angelic assumptions on the target program. Overall, our system, Seeker, guarantees that a program is deemed correct only if it can be verified under a well-defined set of ``trusted'' idiomatic patterns. In our experiments over a set of benchmarks curated from popular open-source software, our tool Seeker is able to identify 79% of the false positives with zero false negatives.

Files

paper #347.zip

Files (5.6 GB)

Name Size Download all
md5:7986ab0b0515172d0f7c79ddffbc82fa
5.6 GB Preview Download