Getting Started

Install the prebuilt binary for your platform, check it runs, then analyze an example model from the repository.

  1. Install

    Download saple-macos.dmg

    Double-click the DMG to mount it, then run the bundled install.sh, or copy saple into a directory on your PATH:

    Shell
    sudo install -m 0755 /Volumes/SAPLE/saple /usr/local/bin/saple

    On first run, macOS may flag the unsigned binary: open System Settings → Privacy & Security and choose Open Anyway.

  2. Check it runs

    Shell
    saple --version
  3. 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:

    Shell
    git clone https://github.com/smander/saple.git
    cd saple
    saple analyze examples/dining_philosophers.spl

    The 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

CommandPurpose
saple parseParse an SPL file and print a declaration summary (--ast for the whole AST)
saple analyzeCheck the properties and patterns of an SPL model, an x86-64 listing or an AArch64 trace
saple translateTranslate an x86-64 listing (--arch x86-64) or an AArch64 trace (--arch aarch64) into SPL
saple composeCompose patterns into chain patterns
saple harnessRun the verification harness on a fixture corpus
saple traceInspect, replay, prune and compress captured run traces
saple model, match, testPlaceholders: 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.

Learn the SPL language Browse the examples
↑ ↓ to moveEnter to openEsc to close