PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 12, 2026Proceedings of the ACM on Programming Languages0 citationsOpen Access

Online Input Grammar Synthesis Aided Symbolic Execution

View Full Paper
KMKe MaYLYunlai LuoZCZhenbang Chen

Key Points

  • The aim is to enhance symbolic execution by generating valid inputs for programs with complex input formats.
  • Developed Lase, an online input grammar synthesis method for symbolic execution.
  • Employed an input grammar-oriented search strategy to prioritize path coverage of syntax rules.
  • Introduced a token-level grammar synthesis method to improve the precision and completeness of generated grammars.
  • Lase significantly improves the input coverage of parsing code in testing.
  • Compared to existing methods, Lase's grammars achieve better precision and recall across benchmark programs.
  • Real-world experiments confirm the effectiveness of Lase in generating valid inputs.

Abstract

Symbolic execution faces the challenge of generating valid inputs when analyzing the program with complex input formats. Token-based symbolic execution can partially tackle this challenge but is still doomed by the difficulty of passing input checking and failing to analyze the code after input checking. We propose Lase, an online input grammar synthesis aided symbolic execution method, to generate valid inputs for improving the effectiveness of symbolic execution. Inside Lase, we propose an input grammar-oriented search strategy and a token-level grammar synthesis method. The search strategy selects the paths to cover more syntax rules in priority. The token-level grammar synthesis improves the synthesized grammar's precision and completeness while ensuring efficiency. The experimental results on real-world parsing programs with complex input grammars demonstrate that Lase can improve the coverage of parsing code and generate more valid inputs to improve the coverage of functionality code significantly. Furthermore, compared with the state-of-the-art grammar synthesis methods, the grammars learned by Lase have better precision and recall on most benchmark programs.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Ma et al. (2026) studied this question.

synapsesocial.com/papers/69db37044fe01fead37c50a4https://doi.org/10.1145/3798243
Ask AI
Helpful
Bookmark
Share
View Full Paper