Skip to content

Conversation

Stevengre
Copy link
Contributor

@Stevengre Stevengre commented Oct 18, 2025

  1. Handle empty-body functions for linking and proving;
  2. Log empty-body function existence when logging the reduced items table size;
  3. Quick-compact for Statics, VTable and Function encoding.

@dkcumming
Copy link
Collaborator

Is this a duplicate of #677 ?

@jberthold
Copy link
Member

Is this a duplicate of #677 ?

I think it does the minimum necessary to avoid crashing on these things in input data (allocs) but does not model the data in any way.
OK to merge for now but maybe we should merge the other PR instead to avoid duplicating work.

Comment on lines 9 to 12
if TYPE_CHECKING:
from typing import Any
# No conditional typing-only imports needed currently
pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this can be deleted then?

@Stevengre
Copy link
Contributor Author

Is this a duplicate of #677 ?

If this PR merged, I can modify this one to avoid duplicity.

@Stevengre Stevengre marked this pull request as draft October 20, 2025 13:03
@Stevengre Stevengre self-assigned this Oct 20, 2025
@Stevengre Stevengre changed the title feat(alloc): quick-compat for Static, Function and VTable feat: handle empty-body functions in smir.json. Oct 20, 2025
@Stevengre
Copy link
Contributor Author

By logging the empty-body functions after reducing, we know that these functions wouldn't effect the result of the current spl-token verification (at least with current spec).

@Stevengre Stevengre marked this pull request as ready for review October 20, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants