Skip to content

Getting Started

Joe Curlee (w4ffl35) edited this page Jan 31, 2026 · 6 revisions

Getting Started

Build dependencies

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install -y cmake ninja-build g++ libz3-dev pkg-config

Configure + build

cmake --preset linux-debug
cmake --build --preset linux-debug

Install from source

Curlee supports installation via CMake.

Default install prefixes (per preset):

  • Debug: ./build/linux-debug/install
  • Release: ./build/linux-release/install

Example (release):

cmake --preset linux-release
cmake --build --preset linux-release
cmake --install build/linux-release

# Installed binaries:
./build/linux-release/install/bin/curlee --help
./build/linux-release/install/bin/curlee_lsp --help

The preset sets a default install prefix (see installDir in CMakePresets.json). You can override it at install time with cmake --install build/linux-release --prefix <your-prefix>.

If you want to force vendored Z3 (instead of system Z3):

cmake --preset linux-debug -DCURLEE_USE_SYSTEM_Z3=OFF
cmake --build --preset linux-debug

Basic usage

./build/linux-debug/curlee --help
./build/linux-debug/curlee check path/to/file.curlee
./build/linux-debug/curlee run path/to/file.curlee

New here? See Glossary for project terms (fuel, golden tests, spans, etc.).

MVP proof (manual demo)

These are real, current fixtures in this repo:

# Demonstrates a failed requires with a model / counterexample
./build/linux-debug/curlee check tests/fixtures/check_requires_divide.curlee

# Demonstrates a failed ensures at return with a model / counterexample
./build/linux-debug/curlee check tests/fixtures/check_ensures_fail.curlee

# `run` is verification-gated: this should fail with the same diagnostic
./build/linux-debug/curlee run tests/fixtures/check_ensures_fail.curlee

# Demonstrates refinement reasoning
./build/linux-debug/curlee check tests/fixtures/check_refinement_implies.curlee

# Demonstrates execution (gated by successful check)
./build/linux-debug/curlee run tests/fixtures/run_success.curlee

Smoke harness (recommended)

For a quick end-to-end confidence loop (build + basic CLI + proof fixtures + a small targeted test run), run:

bash scripts/smoke.sh

You can also run both debug + release presets:

bash scripts/smoke.sh --both

Running tests

ctest --test-dir build/linux-debug --output-on-failure

Clone this wiki locally