Repository navigation
c.zlib: complete registry facade and remove UAT inline contract (#3135) - #3657
Merged
Merged
Conversation
Contributor
Author
|
Seed-driven battery and
Marking ready and merging. |
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 #3135.
Summary
registry/c/zlib/facts.with: Expanded registry facts to cover the full safe publiczlib.h1.4 surface (67/88 functions presented safely, up from 34/88; the 21 genuinely unmodeled/internal/unsafe functions are documented in the header comments):Deflaterlends:deflateSetDictionary(buffer param 1 len param 2),deflateReset,deflateResetKeep,deflateParams,deflateTune,deflateBound,deflateBound_z,deflatePrime.Inflaterlends:inflateSetDictionary(buffer param 1 len param 2),inflateSync,inflateReset,inflateReset2,inflateResetKeep,inflatePrime,inflateMark,inflateSyncPoint,inflateUndermine,inflateValidate,inflateCodesUsed.compress,compress_z,compress2,compress2_z,uncompress,uncompress_z(buffer param 0 capacity param 1 inout,buffer param 2 len param 3,ok Z_OK).GzFileSfns:gzread(buffer param 1 capacity param 2),gzwrite(buffer param 1 len param 2),gzputs,gzungetc(of GzFileS(param 1)),gzerror(param 1 discarded,returns borrow CStr from param 0).adler32,adler32_z,crc32,crc32_z(buffer param 1 len param 2),zError(returns static CStr).src/CiFacts.with: Carryreturns borrow CStr from param Nclauses from registryfnstanzas into generated package contracts.uat/zlib.uat&uat/fixtures/zlib_main.with: Removed the inline project contract override (src/contracts/zlib.with) and expanded the zero-unsafeUAT fixture to exercise one-shotcompress/uncompress,Deflater/Inflaterstreaming (deflateInit2/deflate/inflateInit2/inflate), gzip file I/O (GzFileS.gzopen/gzwrite/gzgetc/gzungetc/gzread/gzerror),crc32/adler32,zlibVersion, andzError.Verification
with-stage1 uat zlib: pass (7 steps, 16.0s,facade zlib: 88 functions, 67 presented safely, 21 raw).behav_3138_buffer_capacity_and_of_param,behav_c_facade_facts_verify,behav_zlib_facade_roundtrip): 3/3 pass.:release-checkspending before marking ready.