Formal specification and requirements validation
Large language models (LLMs) are being tested on specification tasks where a plausible answer is not enough. LiveFMBench checks ANSI/ISO C Specification Language (ACSL) contracts for C programs with Frama-C, Alt-Ergo, and Z3, then filters outputs that changed the program or assertion. That filter cuts reported direct-prompting accuracy by about 20%, and loop invariants remain the main failure type.
Requirement tools show the same preference for constrained generation. ClarifySTL asks users to resolve vague time bounds, thresholds, and references before producing Signal Temporal Logic (STL). It reports double-digit accuracy gains on DeepSTL and STL-DivEn. A separate OOMRAM requirements agent uses a deterministic Python validator to reject invalid requirement combinations; final outputs reached 100% structural validity in 10 project visions, though exact matches to gold standards were not achieved.