Alive2

v0.1.2
io.github.phongndo/alive2-mcp Checked 14 hours ago Published 29 days ago

Prove or refute LLVM IR transformations with Alive2, and read or create alive2.llvm.org links

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

verify Verify an LLVM IR transformation with Alive2

Prove or refute that tgt refines src, per function. Give tgt directly, or passes to produce it with opt (your patched build) or opt=upstream (trunk LLVM). Returns each function's verdict and, when not correct, the counterexample.

ParameterTypeDescription
backendstringauto (default: local alive-tv if configured, else web), local, or web
include_tgtbooleanalso return the tgt module that opt produced
max_detail_linesintegercap on each counterexample's lines (default 40)
optstringopt binary that runs passes, e.g. your patched build; 'upstream' runs them in trunk LLVM on alive2.llvm.org. Default: the server's -opt flag, else upstream
passesstringinstead of tgt: a -passes pipeline that turns src into tgt, e.g. gvn or instcombine
smt_timeoutintegerseconds per SMT query (default 10)
srcstringsource module as LLVM IR text (or use src_file)
src_filestringpath to the source .ll file; relative paths resolve against the server's working directory
tgtstringtransformed module as LLVM IR text; functions are matched to src by name
tgt_filestringpath to the transformed .ll file