DEVELOPMENT EDITION · 769442725406
Toolchain Manual
On this page

Complete option and applicability reference

Global options precede the command; command options follow it. The compile commands share one set of options, so a command accepts some options that have no effect on it. The tables below enumerate every explicit scoped long-option declaration, with aliases and defaults. -h/--help is supplied by the argument parser in addition to those declarations.

Global scope

Option Default Behavior
--colour auto|always|never auto Human diagnostic color; auto follows terminal state and NO_COLOR
--diagnostics human|json|sarif human Human stderr, a JSON diagnostic array, or a SARIF 2.1.0 log for code scanning; other normal output may still share stdout

veradic --version, alone, prints the compiler's version and source revision, the code generator it is built with, and each solver it finds (Z3, cvc5, Yices) with its version and path, or that it is not found.

These are accepted around all commands, but lsp must keep protocol stdout and does not turn LSP into diagnostic-array transport; explain prints Markdown; REPL renders its own human transcript. Global color affects terminal REPL presentation using stdin terminal detection. An invalid command line (B7003) is reported in human form whatever --diagnostics says.

--web-ide [DIR] selects the browser IDE, as an alias for the ide command; it is an alternate launch mode, not a compile option. Its --project, --user-data-dir and --ide-assets options have the IDE meanings listed below.

Shared compile scope

All rows here are accepted by check/prove/build/run/emit/trust. “Proof actions” means prove and build/run/emit when proof is not skipped. check and trust never start proof or code generation; trust reads --project and reports, as trust describes.

Option Default Effective behavior
--project FILE Current-directory verada.toml if present Loads project source/C/proof settings for every compile command
--dump-vcs DIR None Proof actions write SMT-LIB conditions; check does not
--stats Off Proof statistics (where solver time went, what the cache answered), and for a build the native objects and library interfaces reused
-j N, --jobs N Half the processor cores, or VERADA_JOBS Proof worker sessions; a value below 1 counts as 1
--proof full|cached cached for run in a project; full otherwise Whether build/run/emit wait for proof: cached asks no solver, leaves out the checks the project's proof cache knows are proved and keeps the rest at run time, counted by warning B8012; it needs a project and is ignored with --no-cache; prove always proves
--no-prove Off Skips proof for build/run/emit; ignored by prove; check already skips proof
--advisory Off Downgrades proof diagnostics for build/run/emit and retains ghost code; does not relax flow or prove errors
--show-flow Off Prints inferred user Global/Depends to stdout after lowering, including check
--dump-bir Off Prints Core to stdout after lowering, including check
--z3 PATH z3 beside veradic, else on PATH Proof Z3 executable override
--solver-interface pipe|what4 pipe Proof interface; only pipe has optional fallback engines
--cc PATH VERADA_CC, otherwise cc Build linking and run project-C compilation; not a proof option
-o FILE, --output FILE Main-name-based Build executable or emit file; no output-file effect in check/prove/run
--emit llvm|asm|obj|core llvm Selects emit representation; does not convert check/prove/build/run into emit
--no-cache Off Asks every proof again, without the project's proof cache, and writes no .bli files; native/C/runtime caches and enabled certificates are separate
-g, --debug Off Native build/emit DWARF debug data and no optimization; run's JIT does not use it
--proof-budget quick|standard|thorough|heavy Project proof.budget, else quick Default effort, with matching subprogram overrides still applied
--certificates Project true or off Read/write cores; cannot disable a project true value
--target-cpu native|baseline|CPU native The CPU native build/emit code is for: this machine's, a portable baseline for its architecture (x86-64-v2 on x86-64, the M1 on Apple arm64, Armv8-A on other arm64), or a CPU LLVM names; run's JIT always uses this machine's
--no-assume Off Proof actions report what is assumed rather than proved (a pragma Assume, an import from C, a trusted enclave body: B8002) as an error, as a release build should
--stability N 0 Fresh seeded reruns of solver-proved obligations; nonpositive disables extras
--solver-memory MB Project proof.solver-memory, else 4096 Memory each solver process may use (a protective budget)
--query-ceiling MB Project proof.query-ceiling, else 16 Largest query given a solver; a larger one is reported as a defect of the VC generator (a protective budget)
--check-proofs Off With prove: cvc5 writes each proved check's proof and Carcara checks it; the summary says how many were checked independently and why the others were not, and .verada/proof-checks.json records each check's outcome for veradic trust. Needs cvc5 and Carcara
--only NAME All With prove: proves only the subprograms of that name (full dotted name or last part; repeatable), relying on the others' contracts
--proof-warnings Off With prove: also ask of each branch the program writes whether any path reaches it, and warn of code none does (B8010); one more query per branch
--explain Off With prove: each failed check's failing inputs, exactly, and a check-free precondition that excludes them when one is proved to make the check hold

Compact action matrix

Group check prove build run emit
project / show-flow / dump-bir Yes Yes Yes Yes Yes
solver / budget / workers / VCs / certificates / stability Validate settings only Yes Unless skipped Unless skipped Unless skipped
no-prove No change Ignored Skip proof Skip proof Skip proof
advisory No relaxed errors No downgraded errors Development output Development execution Development output
output path No effect No effect Executable No effect Emitted file
cc No process No process Link/C Project C No link
emit kind No effect No effect No effect No effect Yes
debug No effect No effect Yes No effect Native representations

A human run prints only the program's output, not the proof summary, statistics or stability lines; use prove for those reports, or JSON run, whose summary goes to stderr.

Even an ineffective setting can be syntactically validated. Compile actions read project proof settings and validate budget names before check stops at flow. Invalid values therefore can fail check. --no-prove --advisory skips proof but retains ghost code; do not describe it as strictly proved. emit core still follows check/proof/mode selection before writing Core.

Other command scopes

Scope Option Default / behavior
parse --dump Off; print parsed units using their frontend printer
repl --project FILE Current-directory project if present; its source directories
repl --syntax SYNTAX vada; or varc or vibe
format --check Off; list differing files and exit 1 instead of rewriting
translate --to SYNTAX Required; vada, varc or vibe, case-folded target lookup
translate -o DIR, --output DIR Current directory; generated files overwrite same-named outputs
translate --plain-ada Off; applied only with target Vada
stubs -o DIR, --output DIR stubs; generated prelude and package .pyi files
doc -o DIR, --output DIR doc; Markdown unit pages
new --syntax SYNTAX vada; or varc or vibe: the syntax of the new project's sources
new --dir PATH NAME; the directory to create, which must not exist
new --agent-host HOST None; explicitly install read-only project agent setup for codex, vscode-copilot or zed after creating the project
ide --project FILE Use the existing file's containing directory as the workspace; exclusive with a positional directory or ide new
ide --user-data-dir DIR ~/.verada/ide; preferences, workspace sessions and assistant configuration
ide --ide-assets DIR Embedded assets; explicit developer override for the browser application
ide new --syntax SYNTAX vada; or varc or vibe: create the starter and launch its IDE
ide new --name NAME Derived from DIR; explicit name for the initialized project
mcp --root DIR Startup directory; fixed root for the MCP tool service
mcp --allow-execution Off; explicitly allow native code and its I/O effects under host permissions

File-oriented parse/format/translate/doc require inputs. Stubs can run without files. Only repl's syntax selector chooses interactive input, and new's or ide new's the syntax of the files it writes; file tools route each input by extension. An ordinary ide DIR opens the existing directory without creating project files. Common IDE options can appear before new or after its directory and initialization options. There is no root-level --syntax option and no option for arbitrary C flags. Use environment and project fields for the settings outside this table.

Agent command scopes

Agent setup installs project guidance and host tool configuration; it does not select a model. These options belong to the named subcommands, rather than the compile commands.

Scope Option Default / behavior
agent setup / doctor / remove --project FILE Nearest verada.toml above the current directory
agent setup / doctor / remove --host HOST codex; also accepts vscode-copilot and zed
agent setup / remove --apply Off; preview the operation unless explicitly applying conflict-free setup or removal of unchanged Verada-owned files and entries
agent setup --allow-execution Explicitly include native run/REPL tools under host permissions; mutually exclusive with --read-only
agent setup --read-only Explicitly install only read-only compiler tools; mutually exclusive with --allow-execution
agent doctor --file FILE None; also check whether this source file belongs to the selected project
agent tool --request FILE -; read one versioned JSON request from stdin, or from the named file
agent tool / serve --allow-execution Off; explicitly authorize native code and its I/O effects under host permissions
agent serve --root DIR Startup directory; fixed root for the persistent JSON-lines service

Fresh agent setup is read-only. When upgrading an existing setup, omitting both execution flags preserves its installed mode. --allow-execution does not supply an operating-system sandbox. agent tool returns one JSON result; agent serve and mcp keep protocol stdout for their clients. Use veradic agent COMMAND --help for a particular subcommand.