Draft
Conversation
ecd6887 to
66ee0c0
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #8816 +/- ##
===========================================
+ Coverage 80.01% 80.04% +0.03%
===========================================
Files 1700 1701 +1
Lines 188338 188605 +267
Branches 73 73
===========================================
+ Hits 150695 150973 +278
+ Misses 37643 37632 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Compute hash values with respect to string content, not just string container indices (as irept::hash and irept::full_hash do).
compute_loop_hashes() uses AST fingerprinting based on loop structure. This yields loop identifiers that are stable across unrelated code changes, including the addition of do-while(0) pseudo-loops from C macros. The hash normalizes variable names by replacing them with canonical indices based on order of first appearance, so scope renumbering does not affect the hash. The hash is displayed alongside the ordinal loop number in --show-loops output. Users can reference loops by hash in --unwindset using the syntax function.hash_NNNN:limit, which is resolved to the ordinal loop number internally. This enables CI scripts to use stable loop identifiers that survive unrelated code changes. The existing loop_id() function and loop_idt struct are unchanged to preserve backward compatibility. A new loop_hash_id() method provides the hash-based identifier. Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
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.
compute_loop_hashes() uses AST fingerprinting based on loop structure. This yields loop identifiers that are stable across unrelated code changes.