Outrunning Big KATs: Efficient Decision Procedures for Variants of GKAT

📅 2026-01-15
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the inefficiency and limited scalability of existing methods for trace equivalence checking in Guarded Kleene Algebra with Tests (GKAT), particularly their inability to support practical control-flow verification. To overcome these limitations, we propose a novel online symbolic approach that integrates symbolic derivatives with modern SAT solving techniques for the first time, enabling efficient trace equivalence verification for both GKAT and its control-flow variant, CF-GKAT. Implemented in Rust, our method combines symbolic execution with automata derivatives and achieves over an order-of-magnitude speedup compared to state-of-the-art KAT/CF-GKAT tools on both synthetic and real-world control-flow transformation benchmarks. Furthermore, it successfully uncovers previously unknown bugs in Ghidra, a widely used industrial decompiler.

Technology Category

Application Category

📝 Abstract
This paper presents several efficient decision procedures for trace equivalence of GKAT automata, which make use of on-the-fly symbolic techniques via SAT solvers. To demonstrate applicability of our algorithms, we designed symbolic derivatives for CF-GKAT, a practical system based on GKAT designed to validate control-flow transformations. We implemented the algorithms in Rust and evaluated them on both randomly generated benchmarks and real-world control-flow transformations. Indeed, we observed order-of-magnitude performance improvements against existing implementations for both KAT and CF-GKAT. Notably, our experiments also revealed a bug in Ghidra, an industry-standard decompiler, highlighting the practical viability of these systems.
Problem

Research questions and friction points this paper is trying to address.

GKAT
trace equivalence
decision procedures
control-flow transformations
automata
Innovation

Methods, ideas, or system contributions that make the work stand out.

GKAT
trace equivalence
symbolic derivatives
SAT solvers
control-flow validation
C
Cheng Zhang
Worcester Polytechnic Institute, Worcester, MA, U.S.A.
Q
Qiancheng Fu
Boston University, Boston, MA, U.S.A.
H
Hang Ji
Boston University, Boston, MA, U.S.A.
I
Ines Santacruz Del Valle
Boston University, Boston, MA, U.S.A.
Alexandra Silva
Alexandra Silva
Cornell University
Programming LanguagesSemanticsCoalgebraVerificationFormal methods
Marco Gaboardi
Marco Gaboardi
Boston University
Programming LanguagesType SystemsDifferential PrivacyLinear Logic