Skip to main content

Module contract

Module contract 

Source
Expand description

The contract IR: an imported function’s annotations, whichever language they were written in (Viper for .pnk, ACSL for .c). A Term over parameters, constants and retval, a FnContract per function, and a ContractTable keyed by the foreign function. The readers produce it; xta_backend::contract renders it.

Extraction, not summarisation: fic translates what an annotation states and derives nothing itself.

Structs§

ContractTable
The contract of each foreign function a program calls that has one. Empty when no called function is annotated.
FnContract
The checked contract of one foreign function.

Enums§

BinOp
Binary operators of the contract subset.
Term
A contract expression in fic’s subset.
UnaryOp
Unary operators of the contract subset.