autosetup: add curated summaries for OZ Arrays, EIP-712 hashing, camelCase extSload - #103
Merged
Merged
Conversation
naftali-g
approved these changes
Jul 26, 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.
These library functions use inline assembly (raw
mload/ keccak) that thepoints-to analysis can't scalarize, so autosetup-generated setups that reach them
hit PTA failures and downstream blow-ups. Curated, human-reviewed CVL summaries
give sound, reusable replacements — the same mechanism as the existing
OZ_SafeERC20/OZ_Mathentries.Changes
OZ_Arrays.spec(new) + registryoz_arrays_unsafeMemoryAccess: modelsArrays.unsafeMemoryAccessasarr[pos]for the uint256[]/bytes32[]/address[] overloads.EIP712.spec(new) + registryeip712_hashTypedData: deterministic, injective uninterpreted function for solady_hashTypedData/ OZ_hashTypedDataV4; injectivity via a single-quantifier left-inverse ghost.extload.template.spec+ registryextloadnames: add camelCaseextSload/extSloadsalongside the existing lowercaseextsload/exttload.Validation
Both new CVL forms were run through
certoraRun.pyagainst a real protocol scene (via-IR off): they typecheck and attach (theArrays.unsafeMemoryAccessand_hashTypedDataPTA warnings clear).function_summaries.jsonparses; no AutoProver-local test asserts a registry entry-count, and the OZ-Math summary tests still pass.Dependencies & follow-ups
jaroslav/autosetup-no-inherit-via-ir). The curated internal summaries only attach with viaIR off, so that PR must land first.