AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution

Felix Mächtle, Nils Loose, Jan-Niclas Serr, Jonas Sander, Thomas Eisenbarth
9/10/2025
1 citation
cs.SEcs.AIcs.CR

No official code found. Best implementation: UzL-ITS/AutoStub (3 stars, Java, last commit 2025-04-24).

Abstract

Symbolic execution is a powerful technique for software testing, but suffers from limitations when encountering external functions, such as native methods or third-party libraries. Existing solutions often require additional context, expensive SMT solvers, or manual intervention to approximate these functions through symbolic stubs.

Show full abstract

In this work, we propose a novel approach to automatically generate symbolic stubs for external functions during symbolic execution that leverages Genetic Programming. When the symbolic executor encounters an external function, AutoStub generates training data by executing the function on randomly generated inputs and collecting the outputs. Genetic Programming then derives expressions that approximate the behavior of the function, serving as symbolic stubs. These automatically generated stubs allow the symbolic executor to continue the analysis without manual intervention, enabling the exploration of program paths that were previously intractable. We demonstrate that AutoStub can automatically approximate external functions with over 90% accuracy for 55% of the functions evaluated, and can infer language-specific behaviors that reveal edge cases crucial for software testing.

View on arXivView PDF

Code Implementations(1)

UzL-ITS/AutoStubCommunity74%

AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution

31Java, CythonJan 29, 20251 years ago

Similar Papers

Cite this paper

@article{mchtle2025autostub,
  title  = {AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution},
  author = {Felix Mächtle and Nils Loose and Jan-Niclas Serr and Jonas Sander and Thomas Eisenbarth},
  year   = {2025},
  eprint = {2509.08524},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.08524v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.08524.svg)](https://codeofpaper.com/paper/2509.08524)

Discussion