RUS  ENG
Full version
JOURNALS // Proceedings of the Institute for System Programming of the RAS // Archive

Proceedings of ISP RAS, 2022 Volume 34, Issue 4, Pages 49–62 (Mi tisp704)

This article is cited in 1 paper

Automated testing of LLVM programs with complex input data structures

A. V. Misonizhnika, A. A. Babushkina, S. A. Morozovb, Yu. O. Kostyukova, D. A. Mordvinova, D. V. Koznova

a Saint Petersburg State University
b National Research University "Higher School of Economics", St. 

Abstract: Symbolic execution is a widely used approach for automatic regression test generation and bug and vulnerability finding. The main goal of this paper is to present a practical symbolic execution-based approach for LLVM programs with complex input data structures. The approach is based on the well-known idea of lazy initialization, which frees the user from providing constraints on input data structures manually. Thus, it provides us with a fully automatic symbolic execution of even complex program. Two lazy initialization improvements are proposed for segmented memory models: one based on timestamps and one based on type information. The approach is implemented in the KLEE symbolic virtual machine for the LLVM platform and tested on real C data structures — lists, binomial heaps, AVL trees, red-black trees, binary trees, and tries.

Keywords: automated testing, symbolic execution, lazy initialization, LLVM platform, KLEE, data structures

DOI: 10.15514/ISPRAS-2022-34(4)-4



© Steklov Math. Inst. of RAS, 2024