Skip to content

Conversation

@blishko
Copy link
Collaborator

@blishko blishko commented Jan 29, 2025

We overapproximate the behaviour here in the same way as for block.basefee and blockhash.
For the first we only add the basic domain constraints and the second is modelled as an uninterpreted function.

We also model the fact that the number of blobs in transaction is limited by returning 0 from blobhash() if the argument is greater or equal to the limit. The current limit is 6, but it will soon be increased to 9 in pectra update.
Since we overapproximate the behaviour anyway, we can use the pectra limit immediately.

This PR is split into two commits, where the first one just consolidates information related to block in one place, instead of keeping the information in two separate places as was done before.
This makes the consequent additions easier.

Resolves #14780 and #14786.

@blishko blishko added smt 🟡 PR review label labels Jan 29, 2025
@blishko blishko force-pushed the smt-support-new-builtins branch 2 times, most recently from c3ffef5 to ba9dea5 Compare January 29, 2025 21:45
@blishko blishko marked this pull request as ready for review January 29, 2025 22:54
@blishko blishko requested review from nikola-matic and r0qs January 29, 2025 22:54
@blishko blishko force-pushed the smt-support-new-builtins branch 2 times, most recently from 026de4e to d07d6e4 Compare January 30, 2025 20:55
We overapproximate the behaviour here in the same way as for
`block.basefee` and `blockhash`.
For the first we only add the basic domain constraints and the second is
modelled as an uninterpreted function.

We also model the fact that the number of blobs in transaction is
limited by returning 0 from blobhash() if the argument is greater or
equal to the limit.
The current limit is 6, but it will soon be increased to 9 in pectra
update.
Since we overapproximate the behaviour anyway, we can use the pectra
limit immediately.
@blishko blishko force-pushed the smt-support-new-builtins branch from d07d6e4 to 8fe3961 Compare January 31, 2025 07:34
@blishko blishko requested a review from r0qs January 31, 2025 07:42
@blishko blishko merged commit 13e06e6 into develop Jan 31, 2025
74 checks passed
@blishko blishko deleted the smt-support-new-builtins branch January 31, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

smt 🟡 PR review label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SMTChecker support for blobbasefee

2 participants