veradic run
Compile the program in memory with the JIT and execute it once.
veradic [GLOBAL OPTIONS] run [COMPILE OPTIONS] [FILES...]
Input/project loading, legality, lowering and flow match build. Proof does not, in a project: run there defaults to --proof cached, which asks no solver, leaves out the checks the project's proof cache already proved and keeps every other check at run time, counted by warning B8012, so that an edit can be run at once while the editor proves in the background. Give --proof full to prove first, as build does; run on files without a project, with --no-cache or with --advisory proves first. The JIT then loads the generated module, adds any project C objects and enters the program entry. No application executable is written. The program needs a main procedure, as for build.
veradic run --project docs/manuals/examples/first-proof/vibe/after/verada.toml
veradic run --advisory --project verada.tomlThe supplied after project prints answer: 42. With --proof full (and without a project), a program whose proof fails does not run; in the default cached mode, a failure the cache knows is a warning and its check runs. Advisory mode converts proof diagnostics to warnings, retains ghost code and checks unproved executable conditions during execution. No-proof mode skips proof; erased ghost-dependent contracts may go unchecked with B8007. Type/flow errors still block execution.
Options and environment
Shared proof/project/inspection options apply. --cc selects the compiler for project C sources, if any. -o, --emit and native --debug are accepted but do not make run produce a file, select a different output representation or attach native debug metadata. Use build -g for source debugging. --no-cache affects proof answers/.bli, not cached C objects.
The compiler needs working JIT/LLVM facilities; proof needs Z3 where required; project C needs a C compiler. run passes no arguments to the program: Ada.Command_Line.Argument_Count is 0, and -- ends option parsing but does not turn the names after it into program arguments. To pass arguments, build an executable as described in build lifecycle.
Output and failure recovery
Captured runtime stdout becomes command stdout. A successful human run prints the program's output and no proof summary (nor --stats/--stability lines); JSON mode prepends the diagnostic array and puts the proof summary on stderr. --show-flow/--dump-bir can prepend additional inspection text. Runtime stderr and C's direct writes are not automatically structured/captured like normal runtime stdout. Avoid JSON mode when expecting raw application output.
A normal completion returns 0. Runtime check, storage, unhandled exception and recognized foreign-fault outcomes return 1 with failure text. B7013 identifies a caught foreign fault; B9001 can indicate JIT/module failure. A failed run may already have written files, printed output or changed foreign state; it is not transactional and no rollback is promised.
Project proof/interface/certificate artifacts and C object caches may be touched; sources and a native application file are not. Repeated invocation constructs a new execution, whereas a REPL retains session declarations and values. For untrusted or device-touching programs, in-memory execution does not supply an isolation boundary.
A check kept at run time is checked as the program runs; leak freedom and termination are proved, not checked at run time. See mode limits.