Repository navigation
A contract can name a forwarding macro; zlib's facts name the initializers a program calls; the report lists every initializer - #3532
Merged
Conversation
added 3 commits
November 22, 2026 00:12
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.
Closes #3516. Closes #3521. The two issues I opened on 2026-11-21 and should have fixed in place.
#3516: a macro that forwards its parameters to one call.
inflateInit(strm)isinflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream)). The importer already presented such a macro as a callable function, but generic over its parameters, so a contract naming it was refused as "not a declaration in scope". When a macro's body is one call of a declared function, with each macro parameter passed whole as exactly one argument and named nowhere else, the function now takes the callee's own parameter types. The importer's cache format is bumped (v19).zlib's facts now name what a program calls:
inflateInit,inflateInit2,deflateInit,deflateInit2, with nofixedlines. All four returnZ_OKon the pinned zlib 1.4. Constructors readInflater.inflateInit().#3521, the last part: the contract report. It listed only a resource's first initializer, said "status: none" though each stated
ok, and labelled an initializer's claim with an unrelated name: it read the initializer's success status as a profile rule. It now lists every initializer with the name it is presented under, its status, and its real citation;with contract report c.<lib> <function>finds an initializer too.Tests:
behav_c_facade_names_a_forwarding_macro,behav_contract_view_lists_every_initializer; both fail on the previous compiler.Battery green;
:release-checksgreen.