Getting Started
Install the prebuilt binary for your platform, check it runs, then analyze an example model from the repository.
-
Install
Double-click the DMG to mount it, then run the bundled
install.sh, or copysapleinto a directory on yourPATH:sudo install -m 0755 /Volumes/SAPLE/saple /usr/local/bin/sapleOn first run, macOS may flag the unsigned binary: open System Settings → Privacy & Security and choose Open Anyway.
# Ubuntu, Debian sudo apt install ./saple-linux-x64.deb # Fedora, RHEL, CentOS sudo rpm -i saple-linux-x64.rpmThe Linux binary is fully static (musl libc, Z3 bundled), so it needs no system packages.
Download saple-windows-x64.zip
Unzip the archive and add the folder that contains
saple.exeto yourPATH. -
Check it runs
saple --version -
Run your first analysis
The packages contain the binary only. The example models, demo listings and pattern libraries are in the repository; run from a checkout:
git clone https://github.com/smander/saple.git cd saple saple analyze examples/dining_philosophers.splThe model declares deadlock freedom, mutual exclusion and progress, and none is reported violated, so the report ends with
No vulnerabilities detected.The Quick Start walks through more runs, and the walkthrough explains this model.
The commands
| Command | Purpose |
|---|---|
saple parse | Parse an SPL file and print a declaration summary (--ast for the whole AST) |
saple analyze | Check the properties and patterns of an SPL model, an x86-64 listing or an AArch64 trace |
saple translate | Translate an x86-64 listing (--arch x86-64) or an AArch64 trace (--arch aarch64) into SPL |
saple compose | Compose patterns into chain patterns |
saple harness | Run the verification harness on a fixture corpus |
saple trace | Inspect, replay, prune and compress captured run traces |
saple model, match, test | Placeholders: they print a status line and do no analysis yet |
Every flag is listed in the CLI reference. The front ends are described under Intel x86-64 Model and AArch64 Model.