arXiv AI

Ephyra: A Property-Based Testing Framework for the LLM Era

Ephyra is a property‑based testing library written in Rust that emphasizes customizability, observability, and generator synthesis. It allows users to build their own testing loops from generation, mutation, and shrinking, and to synthesize these components to meet functional predicates. In experiments on 14 open‑source systems—including database engines, a policy engine, a SQL equivalence prover, a URL parser, Rust reimplementations of classic tools, and several compilers—Ephyra discovered 349 bugs, of which 300 were reported.

arXiv AI
Nov 14

Spec-Driven PBT: Deriving Semantic Invariants from Code Specifications for Agentic Property-based Testing

Spec-Driven PBT is a testing approach that derives invariant properties from a natural‑language specification before inspecting the implementation to generate concrete tests. In a study of 25 ViBench applications, it uncovered a unique set of bugs that Code‑driven PBT missed, using 2.4× fewer property tests and finding roughly the same total number of bugs with little overlap between the two methods. The approach highlights how specifications can reveal bugs related to documented product workflows, complementing implementation‑focused testing.

By Aditya Shukla, Kartik Gupta, Ali Alavi, Pashootan Vaezipoor
arXiv AI
Aug 24

ARQ: Agentic CodeQL Query Refinement for C/C++ Vulnerability Detection

ARQ is an agentic framework that refines CodeQL queries for C/C++ vulnerability detection by using execution evidence from synthesized programs. It identifies false positives and false negatives by comparing program execution with query verdicts, then employs an LLM-based refinement loop to repair the queries without requiring labeled data or templates. Experiments show that ARQ improves true positive detection by up to 119.8% while maintaining at least 98.0% precision, and it resolved long‑standing GitHub issues and uncovered bugs in libpng and zlib.

By Chunyi Wang, Yunfei Ke, Junfeng Yang, Yun-Yun Tsai, Penghui Li
arXiv AI
Nov 14

DAISY: Fault-Guided Assertion Inference for Dafny

DAISY is a tool that automatically infers missing helper assertions in Dafny programs by localizing likely assertion sites using verifier diagnostics and/or large language model (LLM) guidance. It then generates candidate assertions with an LLM, validates them with the Dafny verifier, and annotates the program accordingly. In evaluations on a benchmark derived from DafnyBench, DAISY successfully verifies 86% of programs with one missing assertion and 36% with two missing assertions, demonstrating that fault‑guided LLM inference can reduce proof‑engineering effort.

By \'Alvaro Silva, Alexandra Mendes, Ruben Martins
arXiv AI
Sep 7

The History Is the Detector: Executing CVE Patch History, End-to-End

The paper introduces BUGSTONE‑E2E, a framework that converts vulnerability history into executable detection rules and validates them. It mines reusable rules from fixing commits, organizes them by CWE and language, and applies a funnel‑shaped pipeline that starts with lightweight analysis and culminates in LLM‑guided inspection, runtime verification, and patch generation. Using 19,325 high‑severity CVEs, the system identified 2,710 fixing commits, created 1,033 detection rules across 56 CWE families, and produced runtime evidence for 644 findings in 14 programs.

By Qiushi Wu, Kevin Eykholt, Youngja Park, Xiaokui Shu, Dhilung Kirat, Douglas Lee Schales, Ian Molloy