Master’s Thesis Presentation • Formal Methods • RuSMT: An Executable Semantics as Conformance Oracle and Test Suite Synthesizer

Friday, December 18, 2026 12:00 pm - 1:00 pm EST (GMT -05:00)

Please note: This master’s thesis presentation will take place in DC 2314 and online.

Mehrad Haghshenas, Master’s candidate
David R. Cheriton School of Computer Science

Supervisor: Professor Meng Xu

Conformance testing asks whether an implementation agrees with its specification. When the specification is expressed in prose, one established approach is to mechanize it as an executable oracle. An oracle, however, judges only the inputs it receives. Undirected coverage-guided fuzzers can drive aggregate coverage high, but they give no way to name one condition in the specification and obtain an input that reaches it.

RuSMT is a framework for writing prose specifications as executable oracles in a domain-specific language embedded in Rust. The author marks a branch with a named marker. Compiled by rustc, the specification executes as the oracle; transpiled to SMT-LIB, it yields one reachability query per marker. Z3 first searches for an input directly. If it returns unknown or times out, a language model proposes concrete candidates that Z3 checks against the same query. Each accepted input becomes a test whose expected verdict is the marked error. A correspondence proof for a core calculus relates the two readings under explicit assumptions about primitive operations, value encodings and finite native evaluation.

The thesis applies RuSMT to two specifications: a small imperative language, IMP, with two markers, and a TOML 1.1.0 parser written from the published standard, with 183 markers at revision c83c907. Z3 alone found inputs for both IMP markers but none of the TOML markers within the tested budgets. With the language model proposing and Z3 checking, RuSMT produced tests for 146 TOML markers; every exported test reached its target in the compiled specification. These are results for the recorded revision, before later translation and oracle repairs. The evaluation does not isolate the benefit of SMT checking over native execution. Against four independent parsers, it exposed two known table-rule violations and a new smol-toml defect: acceptance of an array-of-tables header closed by one bracket. The defect was fixed upstream, and toml-test adopted the regression test.

On 20 rule-relaxation mutants, the generated suite detected 12, while toml-test detected 18, including all those detected by the generated suite. Each of thirty one-hour fuzzing trials reached more markers than the generated suite. Retaining only the first input per marker, the coverage-guided, unguided and minimal-seed configurations detected medians of 4.5, 6 and 2 mutants, respectively; their pooled inputs detected 14. The generated suite therefore supplements, rather than replaces, existing tests: its main addition was a test exposing a defect that the public suite had missed.


To attend this master’s thesis presentation in person, please go to DC 2314. You can also attend virtually on Zoom.