DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B8012: unproved checks kept at run time

Catalog status: active. Default severity: warning. Stable name: pending-checks. Family: Warnings and assumptions.

A warning from a build that did not wait for the prover: veradic run in a project (its default), or veradic build --proof cached. Such a build asks no solver. The checks the project's proof cache already holds proofs for are left out of the code, as in a full build; every other check is kept as a run-time check, as in advisory mode, and this warning says how many there are. Nothing about the program is wrong: those checks have not been proved since the program last changed, or the program was never proved.

A cached build is for a quick edit-and-run cycle while an editor proves in the background. It is never a release build: veradic build without --proof cached proves every check first.

Example (Vada)

procedure Main is
   Total : Integer := 0;
begin
   for I in 1 .. 10 loop
      Total := Total + I;   --  an overflow check, unproved since this edit
   end loop;
end Main;
--  veradic run: warning[B8012]: 1 check is not proved, and is kept as a run-time check

Example (Varc)

fn main() {
    var total: Integer = 0;
    for i in 1..=10 {
        total = total + i;  // an overflow check, unproved since this edit
    }
}
// veradic run: warning[B8012]: 1 check is not proved, and is kept as a run-time check

What to do

Nothing, if the program runs as expected: prove it when you are ready, with veradic prove, or let the editor's background prover catch up, and the next cached build leaves the proved checks out. To make a build wait for the prover, give --proof full.

Regression source and further reading

See warnings and assumptions, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.