Skip to content

Conversation

@onionpsy
Copy link
Contributor

@onionpsy onionpsy commented Jan 6, 2026

Add hooks for Set.contains(...) and Set.remove(...)

Copy link
Contributor

@simonresch simonresch left a comment

Choose a reason for hiding this comment

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

@simonresch simonresch requested a review from Copilot January 6, 2026 19:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds instrumentation hooks for Set.contains() and Set.remove() operations to improve fuzzing feedback by tracing comparisons with nearby elements when lookups fail.

Key Changes:

  • Adds two new method hooks for Set.contains and Set.remove that trigger when operations return false
  • Refactors existing map key lookup logic into a reusable getLowerUpperBounds helper method
  • Generalizes the NavigableMap check (previously TreeMap) to support broader map implementations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@onionpsy onionpsy force-pushed the CIF-1887-set-mutator branch 3 times, most recently from eddf0b7 to 720bfa2 Compare January 7, 2026 16:41
Copy link
Contributor

@simonresch simonresch left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@onionpsy onionpsy force-pushed the CIF-1887-set-mutator branch from 720bfa2 to 1a83c2d Compare January 8, 2026 08:49
@onionpsy onionpsy merged commit 305244c into main Jan 8, 2026
9 checks passed
@onionpsy onionpsy deleted the CIF-1887-set-mutator branch January 8, 2026 11:21
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