Repository navigation
Conversation
- Restore compilation and flow analysis with `--report=all` using the default toolchain. - Expect the termination diagnostic for the original loop. Co-Authored-By: Codex <noreply@openai.com>
- Qualify the comparison with `Element_Array` so GNAT and GNATprove report ordinary errors for using abstract state as a value. - Restore compilation and flow analysis with the default toolchain. Co-Authored-By: Codex <noreply@openai.com>
Add a short note after the semicolon example to explain the loop termination diagnostic and the `Loop_Variant` that resolves it. Validated with GNATprove 16: the original loop reports an unproved `Always_Terminates` check. Adding `pragma Loop_Variant (Decreases => 1)` proves the check. Co-Authored-By: Codex <noreply@openai.com>
clairedross
reviewed
Nov 13, 2026
clairedross
reviewed
Nov 13, 2026
Add `pragma Loop_Variant (Decreases => 1)` to the loop and remove `ada-expect-prove-error` now that GNATprove proves termination. Explain in one sentence that a constant variant rules out a second iteration. Validated all 10 code blocks in the syntactic guarantees chapter with GNAT/GNATprove 16 and the course's 80-column limit. Co-Authored-By: Codex <noreply@openai.com>
clairedross
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable compilation and flow analysis with the default toolchain for
the semicolon and abstract-state examples.
Qualify the invalid abstract-state operands with
Element_ArraysoGNAT and GNATprove report the intended errors instead of crashing.
Keep the semicolon source unchanged and add a short note explaining
its unproved termination check and the
Loop_Variantthat resolves it.Remove unused GNAT 12 and 14 and GNATprove 12 from the installation
list. Retain GNAT/GNATprove 15 and GPRbuild 25 for the two unchanged
ring-buffer examples: version 16 misses the ghost-use errors they
demonstrate.
Validation:
explicit content pin is covered by the configured versions.
Co-Authored-By: Codex noreply@openai.com