Map generic formal inputs in generated globals - #67
Open
truemagic-coder wants to merge 1 commit into
Open
Conversation
truemagic-coder
marked this pull request as ready for review
August 17, 2026 07:30
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.
Fixes #62.
GNATprove can miscompute generated
Globalcontracts when a generic formal object of modeinis used inside an instance. When the generated contract is queried outside the instance, the instance-local constant can escape instead of being mapped back to the object referenced by the generic actual, resulting in an incorrectGlobaldiagnostic andProgram_Error.This PR:
inobjects in generatedProof_InsandInputsback to their actual expressions;Globalcontracts;in outgeneric actuals;Verification
The exact submitted commit was independently verified with FalseGreen against a frozen verification contract.
gnat2whydependency closure was rebuilt from source with prior build outputs removed;gnat2why;92565c8f0e744c4df2d4228ae0309ea9791e377a.The verification is scoped to these criteria and does not claim broader correctness of GNATprove. Because a matching internal GNAT frontend for current master is not publicly available, the source-built verification used the public
fsf-16source-equivalent target while binding the submitted product files to the exact commit above.Assisted-by: Codex