Skip to content

Add hash table invariant assertions and callee filtering - #37

Merged
neysofu merged 1 commit into
mainfrom
filippo/codex/recommend-hash-table-invariants
Mar 2, 2026
Merged

Add hash table invariant assertions and callee filtering#37
neysofu merged 1 commit into
mainfrom
filippo/codex/recommend-hash-table-invariants

Conversation

@neysofu

@neysofu neysofu commented Mar 1, 2026

Copy link
Copy Markdown
Member

Summary

  • document the new runtime guards for hash table metadata along with the reachable-callable scan correction in the language semantics docs
  • add HashTable.assert_metadata and call it across constructors/mutations to keep len, resize_threshold, and bucket relationships sane
  • constrain verification_checker::direct_user_callees to entry-reachable blocks and stop scanning past terminators to avoid dead-arm assumptions (plus cover it with a regression test)

Testing

  • Not run (not requested)

@neysofu
neysofu merged commit aa9ad85 into main Mar 2, 2026
2 checks passed
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.

1 participant