Skip to content

Tighten proof gate - #42

Merged
Jbsco merged 3 commits into
mainfrom
feat/prove-gate
Dec 1, 2026
Merged

Jbsco merged 3 commits into
mainfrom
feat/prove-gate

Conversation

@Jbsco

@Jbsco Jbsco commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Makes prove.do fail where gnatprove reports success that is not complete, as AdaCore's rewritten gnatprove skill lists.

  • Bit_Streams.Field_At reads a field without moving a cursor. Block_Codec.History_Reach and the stage-flag peek in Decode use it and Bit_At, which clears flow warnings about cursors set but never read. It proves at level 2.
  • prove.do fails on any warning line in gnatprove's output.
  • prove.do checks that each of its units appears in gnatprove.out with every subprogram analyzed or skipped for SPARK_Mode => Off. Before, one analyzed subprogram anywhere passed it.

Verification: prove.do, test.do and style.do pass. With a stub gnatprove replaying recorded output, prove.do failed on a warning, on a summary without canonical_decoding, and on a block_codec subprogram left unanalyzed, and passed a clean summary.

@Jbsco
Jbsco merged commit 486267c into main Dec 1, 2026
3 checks passed
@Jbsco
Jbsco deleted the feat/prove-gate branch December 1, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant