Repository navigation
with get: a store into a record of the function's own frame is no proof of a store (#3374, first part) - #3381
Merged
Merged
Conversation
…'s own frame is no proof of a store (sqlite3Prepare's sParse.db = db); a record the body copies out, returns or holds static still is (#3374)
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.
Part of #3374 (does not close it: the second store, a back-pointer in memory the parameter owns, awaits a ruling; see the brief in the issue).
sqlite3PreparehasParse sParse; … sParse.db = db;. The proof engine read any member store as "the function stores the parameter", socontract-proofs.txtcontradicted a statedlendonsqlite3_prepare_v2andsqlite3_execwherever sqlite3 is built from source (Windows).CImport.ci_body_call_evidence_walkwritesframe:<param>when the place isname.f…(dots only) andnameis a non-static local or a by-value parameter that the body never uses as a whole value (assigned somewhere, returned, passed by value).ci_own_walkwrites noparamstorefor it.param_stores), so nothing drawn becomes more permissive;fd_retain_reasonsays "held in a record of the function's own frame, which is not followed", which is not a proof line (§31.7: weaker than a grant).staticlocal record, a record copied through a pointer, a record returned by value, a store through a pointer.Test:
test/internals/conan_contract_proofs_frame_record_test.w, nine cases; it failed before the change (scratch stores 0 stored in a field).Battery GREEN (4c201ed);
:release-checksgreen.