IronTLA
An end-to-end, drop-in replacement for the TLA+ / TLC model checker written 100% in no_std LLVM IR (.ll), with zero C, zero Rust, and zero libc calls.
IronTLA reimplements the full TLA+ model checking pipeline in hand-written modern LLVM IR across 16 .ll modules (30,021 lines): layout-sensitive lexer, Pratt parser with indentation-sensitive /\ and \/ junction lists, canonical value engine, load-time bytecode VM, zero-copy streaming BFS explorer, factored symmetry reduction, AOT spec-to-LLVM-IR compiler (--aot), and raw syscall runtimes for macOS arm64/x86_64 and Linux x86_64/riscv64.
Compiled with whole-program LLVM LTO into a standalone 264 KB Mach-O binary with 0 undefined libc symbols (nm -u build/irontla = 0), IronTLA passes 12/12 unmodified specifications from the official tlaplus/Examples repository with exact TLC v1.7.4 state counts, depths, exit codes, and shortest BFS counterexample traces.
On Apple Silicon arm64, IronTLA runs up to 113× faster than Java TLC (100.4× median speedup, 71.4× total across all 12 specs) using up to 80× less peak RAM (1.8 to 5.5 MB vs 118 to 441 MB). On SimplifiedFastPaxos, it finishes in 49.5 ms single-threaded (33.3× faster than Java) and 31.8 ms with -workers 4 (40.1× faster than Java -workers 4).
Read the full story, optimization journey, and benchmark breakdown in I rewrote the TLA+ model checker in pure no_std LLVM IR.