B7005: construct not supported
Catalog status: active. Default severity: error. Stable name: not-yet-supported. Family: Driver and session failures.
The program uses a construct that Verada recognises but does not take: the parser reads it, and a later stage (the semantic checks, the prover or the code generator) rejects it. The message names the construct; the label marks where it is. The construct is legal Ada, so the program is not wrong, but Verada cannot check, prove or run it.
Example (Vada)
Bits : constant Integer := Integer'Size;
-- Verada's prover and code generator do not support the `Size` attribute hereExample (Varc)
let bits: Integer = Integer::Size;
// Verada's prover and code generator do not support the `Size` attribute here
What to do
Rewrite the construct with one Verada takes. The usual alternatives:
- a representation attribute such as
'Size: a named constant with the value; - a type extension, an interface or a generic formal type: a variant record, or a generic over the operations the code needs;
- an anonymous access-to-subprogram type: a named access type, or a generic formal subprogram;
- a construct the prover does not take inside a contract or a quantified expression: an expression function that computes it, called from the contract.
The implementation limits list what Verada does not take in each area. A larger proof budget does not help: B7005 is not a proof failure.
Regression source and further reading
Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.
See driver and session failures, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.