Software architecture for validating C++ programs using symbolic execution
Abstract
Particular embodiment compile a C++ program having one or more input variables to obtain bytecode of the C++ program; compile a C++ library to obtain bytecode of the C++ library; symbolically execute the bytecode of the C++ program and the bytecode of the C++ library, comprising assign a symbolic input to each input variable of the C++ program; determine one or more execution paths in the C++ program; and for each execution path, construct a symbolic expression that if satisfied, causes the C++ program to proceed down the execution path; and generate one or more test cases for the C++ program by solving the symbolic expressions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 38 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: by one or more computing devices, compiling a C++ program having one or more input variables to obtain bytecode of the C++ program; modifying a standard C++ library associated with the C++ program to create an optimized C++ library, the optimized C++ library used for symbolic execution and the standard C++ library used for concrete execution, wherein modifying the standard C++ library comprises rewriting one or more classes defined in the standard C++ library to result in fewer execution paths; compiling the optimized C++ library to obtain bytecode of the optimized C++ lib
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (38)
Non-Patent Literature (5)
- Cadar, C., et al., "KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs," OSDI '08 Proceedings of the 8th Usenix Conference on Operating Systems Design and Implementation, pp. 209-224, Dec. 8, 2008, 2010.
- Cui, H., et al., "Stable Deterministic Multithreading through Schedule Memoization," Proceedings of the Ninth Symposium on Operating Systems Design and Implementation, pp. 1-15, Oct. 2010.
- Li, G., "A Short Tutorial of CKLEE for CUDA (Version 0.01)*," http://www.cs.utah.edu/formal-verification/mediawiki/images/e/e5/GKLEE-Tutorial, pp. 1-8, dated: Nov. 3, 2010.
- Li, G., “A Short Tutorial of CKLEE for CUDA (Version 0.01)*,” http://www.cs.utah.edu/formal—verification/mediawiki/images/e/e5/GKLEE—Tutorial, pp. 1-8, dated: Nov. 3, 2010.
- Office Action for U.S. Appl. No. 13/021,604, Apr. 5, 2013.