Affiliation:
1. Korea University, Korea
Abstract
We present a method for synthesizing regular expressions for introductory automata assignments. Given a set of positive and negative examples, the method automatically synthesizes the simplest possible regular expression that accepts all the positive examples while rejecting all the negative examples. The key novelty is the search-based synthesis algorithm that leverages ideas from over- and under-approximations to effectively prune out a large search space. We have implemented our technique in a tool and evaluated it with non-trivial benchmark problems that students often struggle with. The results show that our system can synthesize desired regular expressions in 6.7 seconds on the average, so that it can be interactively used by students to enhance their understanding of regular expressions.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Cited by
8 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. The SemGuS Toolkit;Lecture Notes in Computer Science;2024
2. Repairing Regular Expressions for Extraction;Proceedings of the ACM on Programming Languages;2023-06-06
3. Search-Based Regular Expression Inference on a GPU;Proceedings of the ACM on Programming Languages;2023-06-06
4. Visualization question answering using introspective program synthesis;Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation;2022-06-09
5. Multi-modal program inference: a marriage of pre-trained language models and component-based synthesis;Proceedings of the ACM on Programming Languages;2021-10-20