Flatten and conquer: a framework for efficient analysis of string constraints

PA Abdulla, MF Atig, YF Chen, BP Diep, L Holík… - ACM SIGPLAN …, 2017 - dl.acm.org
We describe a uniform and efficient framework for checking the satisfiability of a large class
of string constraints. The framework is based on the observation that both satisfiability and …

Context-bounded verification of context-free specifications

P Baumann, M Ganardi, R Majumdar… - Proceedings of the …, 2023 - dl.acm.org
A fundamental problem in refinement verification is to check that the language of behaviors
of an implementation is included in the language of the specification. We consider the …

Spectrum-based fault localization for context-free grammars

M Raselimo, B Fischer - Proceedings of the 12th ACM SIGPLAN …, 2019 - dl.acm.org
We describe and evaluate the first spectrum-based fault localization method aimed at finding
faulty rules in a context-free grammar. It takes as input a test suite and a modified parser for …

Verifying correct usage of context-free API protocols

K Ferles, J Stephens, I Dillig - Proceedings of the ACM on Programming …, 2021 - dl.acm.org
Several real-world libraries (eg, reentrant locks, GUI frameworks, serialization libraries)
require their clients to use the provided API in a manner that conforms to a context-free …

Automated Ambiguity Detection in Layout-Sensitive Grammars

J Liu, F Zhu, F He - Proceedings of the ACM on Programming …, 2023 - dl.acm.org
Layout-sensitive grammars have been adopted in many modern programming languages. In
a serious language design phase, the specified syntax—typically a grammar—must be …

Automatic grammar repair

M Raselimo, B Fischer - Proceedings of the 14th ACM SIGPLAN …, 2021 - dl.acm.org
We describe the first approach to automatically repair bugs in context-free grammars: given
a grammar that fails some tests in a given test suite, we iteratively and gradually transform …

Symbolic encoding of LL (1) parsing and its applications

PK Kalita, D Singal, P Agarwal, S Jhunjhunwala… - Formal Methods in …, 2022 - Springer
Parsers are omnipresent in almost all software systems. However, an operational
implementation of parsers cannot answer many “how”,“why” and “what if” questions, why …

[PDF][PDF] Parse Condition: Symbolic Encoding of LL (1) Parsing.

D Singal, P Agarwal, S Jhunjhunwala, S Roy, G Barthe… - LPAR, 2018 - easychair.org
In this work, we propose the notion of a Parse Condition—a logical condition that is
satisfiable if and only if a given string w can be successfully parsed using a grammar G …

Grammars for free: Toward grammar inference for ad hoc parsers

M Schröder, J Cito - Proceedings of the ACM/IEEE 44th International …, 2022 - dl.acm.org
Ad hoc parsers are everywhere: they appear any time a string is split, looped over,
interpreted, transformed, or otherwise processed. Every ad hoc parser gives rise to a …

Detecting and explaining (in) equivalence of context-free grammars

M Schmellenkamp, T Zeume, S Argo, S Kiefer… - arXiv preprint arXiv …, 2024 - arxiv.org
We propose a scalable framework for deciding, proving, and explaining (in) equivalence of
context-free grammars. We present an implementation of the framework and evaluate it on …