DEVELOPMENT EDITION · 769442725406
Language Reference
On this page

Implementation limits and excluded forms

This chapter collects the fixed limits of Verada's implementation and the forms the language leaves out by design, with the alternative to use for each. The Ada features Verada leaves out, and the forms whose meaning differs from Ada's, are in Verada and standard Ada.

Numeric and value limits

Area Limit
Signed integer bases 8, 16, 32, 64 and 128 bits, chosen from the declared bounds; predefined widths as in integer ranges
Modular types Static modulus 1 through 2^128
Floating precision Declared digits 1 through 15; binary32 through 6, binary64 thereafter
Fixed point Ordinary fixed point with a positive static delta and a range; decimal fixed point with a power-of-ten delta and 1 through 18 digits
Character/String String holds Latin-1; Wide_String the Basic Multilingual Plane; Wide_Wide_String every code point; source files are UTF-8
Big integers None but memory: arbitrary precision in code, as in proof
Integer literals A universal integer has no limit; a literal of 2 ** 66 bits or more is refused (no memory holds it)
Lengths Strings, texts and containers below Verada.Storage.Length_Bound (2 ** 60), a machine-word fact
Arrays Declared rank and rectangular shape
Record components with run-time bounds None but memory: a small one in place, a large one held apart (see below)
Tasks and protected objects As many as the program declares

Each limit above is a fixed range of an underlying value that proof needs (a machine integer's width, a binary64's precision, a machine word's address range).

A record's array component whose bounds depend on a discriminant, or are known only when the type is elaborated, has no limit of its own. One whose upper bound is a discriminant is held in the record with room for the discriminant subtype's largest value when that room is at most 64 KiB; any other is held apart from the record, sized by its actual bounds: on the secondary stack for an object whose discriminants cannot change, in the library region for a library-level one, and on the heap for an unconstrained object whose discriminants have defaults (an assignment of the whole record may change them, and the component's length with them). Copying a record copies its components, and an object's storage goes with it. The choice is the compiler's alone: proof sees an array value with its bounds in every case.

Other limits are resource budgets, which bound work rather than values, and are configurable: the proof budget (--proof-budget, [proof] budget and [proof.budget-overrides] in verada.toml), each solver process's memory (--solver-memory, [proof] solver-memory, in MB, default 4096) and the largest query given to a solver (--query-ceiling, [proof] query-ceiling, in MB, default 16, past which a query is reported as a defect of the VC generator), and the APL Workbench's budgets (time, cells, memory, workers). Its fixed request and source sizes (16 MiB requests, 10 MiB responses, 8 MiB sources) protect an interactive editor session.

These limits do not promise that the largest permitted array, container or allocation fits in memory. Stack, heap, thread creation, operating-system resources and foreign code remain environmental limits. Library APIs can impose narrower capacities and ranges.

Excluded language forms

Every Ada feature Verada leaves out is listed, with its replacement, in Verada and standard Ada. Verada also leaves out these forms, which Ada does not have:

Excluded form Use instead
continue in Vada (Ada has none) A conditional remainder of the loop body; Varc and Vibe have continue
Lambdas that escape, outside pipeline stages (Varc and Vibe) Generic formal subprograms, callback types for library-level subprograms, pipeline lambdas
Python dynamic typing, eval, reflection, coroutines The typed Vibe subset; Vibe compatibility lists each Python form

Obsolescent Ada forms are reported with a fix-it to the modern spelling. Some Ada aspects and pragmas are accepted for compatibility without effect; the aspect and pragma catalog lists them.