🛰️ Daily AI Frontier
‹ back to 2026-07-26

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

Research AI Software Testing

Ranking

Overall 62
Content 70
Popularity 42

Observed public metrics from 1 member.

Merged summary

TL;DR - This paper proposes using Petri nets to constrain LLM generation of executable tests for concurrent, stateful Rust APIs. It aims to combine formal scenario design with low-cost code synthesis while preserving API legality and meaningful concurrency.

  • Models resources, lifecycle states, and causal dependencies as colored tokens and transitions.
  • Generates deep-state, near-legal, and partially ordered concurrent test scenarios.
  • Uses a local-faithfulness contract and structural repair loop to retain modeled intent in synthesized Rust code.
  • Separates synthesis failures from possible API behavior violations through a layered semantic oracle.

Sources (1)

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

arXiv cs.SE Kaiwen Zhang, Guanjun Liu 2026-07-23 arXiv:2607.21530
Public signals Semantic Scholar citations 0 · Semantic Scholar influential citations 0
Providers: Hugging Face · N/A OpenAlex · N/A Publisher · N/A Semantic Scholar · Citations 0 · Influential citations 0 X · N/A Fetched 2026-08-05 14:25:04.688317 UTC

TL;DR - This paper proposes using Petri nets to constrain LLM generation of executable tests for concurrent, stateful Rust APIs. It aims to combine formal scenario design with low-cost code synthesis while preserving API legality and meaningful concurrency.

  • Models resources, lifecycle states, and causal dependencies as colored tokens and transitions.
  • Generates deep-state, near-legal, and partially ordered concurrent test scenarios.
  • Uses a local-faithfulness contract and structural repair loop to retain modeled intent in synthesized Rust code.
  • Separates synthesis failures from possible API behavior violations through a layered semantic oracle.
item →