Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

FieldRequiredDescription
nameyesThe output filename stem: build/<name>.img and build/<name>.xta.
srcyesThe 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/.
includenoDirectories 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.

FieldRequiredDescription
modeyesqemu or hardware. Hardware is not implemented yet.
argsnoArguments passed to qemu-system-aarch64. {img} is replaced by the image’s absolute path.

[run.target] — board and toolchain

FieldRequiredDescription
boardyesMicrokit board, e.g. qemu_virt_aarch64: a directory under the SDK’s board/.
profileyesMicrokit build profile: debug or release. Only a debug image prints (dbg, and fic’s own lines) and reports a notification that no receive took.
sdknoThe Microkit SDK. Falls back to $MICROKIT_SDK.
gccnoThe AArch64 cross-compiler. Falls back to $GCC.
ldnoThe AArch64 cross-linker. Falls back to $LD.
allow_wf2_cyclesnoPass --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.

FieldRequiredDescription
modeyesThe model checker. verifyta (UPPAAL) is the only one.
pathnoThe binary. Falls back to $VERIFYTA, then verifyta on PATH.
argsnoExtra 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.

FieldRequiredDescription
languageyes"c": Frama-C’s WP plugin proves the ACSL. "pnk": pancake2viper proves the Pancake contracts.
pathnoThe binary. Falls back to $FRAMAC / $PANCAKE2VIPER, then frama-c / pancake2viper on PATH.
argsnoExtra flags, after the verifier’s own arguments.
assumenoC 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.