AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mächtle, Felix, Loose, Nils, Serr, Jan-Niclas, Sander, Jonas, Eisenbarth, Thomas
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911147510202368
author Mächtle, Felix
Loose, Nils
Serr, Jan-Niclas
Sander, Jonas
Eisenbarth, Thomas
author_facet Mächtle, Felix
Loose, Nils
Serr, Jan-Niclas
Sander, Jonas
Eisenbarth, Thomas
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_08524
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution
Mächtle, Felix
Loose, Nils
Serr, Jan-Niclas
Sander, Jonas
Eisenbarth, Thomas
Software Engineering
Artificial Intelligence
Cryptography and Security
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. 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.
title AutoStub: Genetic Programming-Based Stub Creation for Symbolic Execution
topic Software Engineering
Artificial Intelligence
Cryptography and Security
url https://arxiv.org/abs/2509.08524