PulseAugur
EN
LIVE 07:31:28

Petri-net guided LLM test generation for concurrent Rust APIs

Researchers have developed a new methodology for generating executable tests for concurrent stateful Rust APIs using Large Language Models (LLMs). This approach employs Petri nets to represent API resources, lifecycle conditions, and dependencies, enabling the derivation of complex concurrent scenarios. These scenarios serve as a constrained intermediate representation for LLMs, guiding them to synthesize tests that adhere to API preconditions and explore concurrency more effectively. The system includes mechanisms for preserving modeled intent during synthesis and a semantic oracle to distinguish between synthesis failures and API behavior violations. AI

IMPACT Enhances LLM capabilities for generating complex, executable tests for concurrent software systems.

RANK_REASON The cluster contains a research paper detailing a novel methodology for test generation. [lever_c_demoted from research: ic=1 ai=1.0]

Read on arXiv cs.AI →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Petri-net guided LLM test generation for concurrent Rust APIs

COVERAGE [1]

  1. arXiv cs.AI TIER_1 English(EN) · Kaiwen Zhang, Guanjun Liu ·

    From Resource Flow to Executable Tests: Petri-Net-Guided LLM Test Generation for Concurrent Stateful Rust APIs

    arXiv:2607.21530v1 Announce Type: cross Abstract: Concurrent stateful library APIs expose behavior through evolving resource ownership, lifecycle states, and competing interleavings. Large language models can synthesize executable Rust tests, but their outputs often violate API p…