The Project Manifest (fire.toml)
fire reads fire.toml from the project directory. It names the
project, locates the sources, and says how fire build and fire run
build and launch the image and how fire verify runs its verifiers.
Example
Based on demo/pingpong/fire.toml:
[project]
name = "pingpong" # output stem: build/pingpong.img, build/pingpong.xta
src = "." # the .fis/.fi files, relative to this file
[run]
mode = "qemu"
# {img}: the built image.
args = [
"-machine", "virt,virtualization=on",
"-cpu", "cortex-a53",
"-serial", "mon:stdio",
"-device", "loader,file={img},addr=0x70000000,cpu-num=0",
"-m", "size=2G",
"-nographic",
]
[run.target]
board = "qemu_virt_aarch64"
profile = "debug"
# sdk, gcc, ld default to $MICROKIT_SDK, $GCC, $LD.
# ping<->pong is a 2-cycle; pingpong.q decides deadlock freedom instead.
allow_wf2_cycles = true
[verify.model_checker]
mode = "verifyta" # path defaults to $VERIFYTA, then PATH
[[verify.code_verifier]]
language = "c" # path defaults to $FRAMAC, then PATH
args = ["-wp-rte", "-wp-prover", "qed"]
[project] — identity and sources
| Field | Required | Description |
|---|---|---|
name | yes | The output filename stem: build/<name>.img and build/<name>.xta. |
src | yes | The directory holding the .fis / .fi files, relative to fire.toml. Generated files go to <src>/build/ and <src>/include/gen/; queries live in <src>/spec/. |
include | no | Directories searched for the headers the imported C includes, after the project’s own; each is passed to fic as -I. $NAME and ${NAME} read the environment (an unset one is an error); a relative path is relative to fire.toml. E.g. ["$VENDOR/include", "vendor/include"]. |
[run] — how to launch
[run] and [run.target] are required, also by fire verify.
| Field | Required | Description |
|---|---|---|
mode | yes | qemu or hardware. Hardware is not implemented yet. |
args | no | Arguments passed to qemu-system-aarch64. {img} is replaced by the image’s absolute path. |
[run.target] — board and toolchain
| Field | Required | Description |
|---|---|---|
board | yes | Microkit board, e.g. qemu_virt_aarch64: a directory under the SDK’s board/. |
profile | yes | Microkit build profile: debug or release. Only a debug image prints (dbg, and fic’s own lines) and reports a notification that no receive took. |
sdk | no | The Microkit SDK. Falls back to $MICROKIT_SDK. |
gcc | no | The AArch64 cross-compiler. Falls back to $GCC. |
ld | no | The AArch64 cross-linker. Falls back to $LD. |
allow_wf2_cycles | no | Pass --allow-wf2-cycles to fic. Default false. |
sdk, gcc and ld, when set, override the environment for the fic
that fire runs, which pins a toolchain per project.
[verify.model_checker] — the model checker
The [verify] tables are optional, but with any of them present
[verify.model_checker] is required; without them fire verify finds
verifyta through $VERIFYTA or PATH and has no code verifier.
| Field | Required | Description |
|---|---|---|
mode | yes | The model checker. verifyta (UPPAAL) is the only one. |
path | no | The binary. Falls back to $VERIFYTA, then verifyta on PATH. |
args | no | Extra flags, after the model and query arguments. |
[[verify.code_verifier]] — code verifiers
One entry per foreign language whose imports carry contracts. The model
assumes those contracts, so fire verify proves them first, and fails if
a project has contracts in a language with no entry.
| Field | Required | Description |
|---|---|---|
language | yes | "c": Frama-C’s WP plugin proves the ACSL. "pnk": pancake2viper proves the Pancake contracts. |
path | no | The binary. Falls back to $FRAMAC / $PANCAKE2VIPER, then frama-c / pancake2viper on PATH. |
args | no | Extra flags, after the verifier’s own arguments. |
assume | no | C only (an error on a "pnk" entry): functions Frama-C does not prove. WP skips each (-wp-skip-fct) and its callers use its contract as given; fire verify lists them on an ASSUMED row. A name that no file sent to Frama-C defines is an error. E.g. ["virtio_net_rx", "virtio_net_tx"], a device driver’s entry points. |