Skip to content

Correct the implicit-key skip comments: the debug dump is unconditional, not a no-op assertion#372

Merged
khatchad merged 1 commit into
masterfrom
fix-no-op-assertion-comments
Jun 10, 2026
Merged

Correct the implicit-key skip comments: the debug dump is unconditional, not a no-op assertion#372
khatchad merged 1 commit into
masterfrom
fix-no-op-assertion-comments

Conversation

@khatchad

Copy link
Copy Markdown
Member

The isImplicit skip comments added with #371 described WALA's call-graph-IR dump as reached via a "no-op-assertion debug path." That's inaccurate: Assertions.UNREACHABLE() throws UnimplementedError unconditionally (it does not no-op when assertions are disabled), and the dump itself is an unconditional System.err print. Reworded the four comments to "unconditional debug print." Comment-only; no behavior change.

Surfaced by liblit in wala/WALA#1934; the same correction was applied to wala#573 and the WALA PR description.

…al, not a no-op assertion

The `isImplicit` skip comments described WALA's call-graph-IR dump as reached via a "no-op-assertion debug path." `Assertions.UNREACHABLE()` throws `UnimplementedError` unconditionally rather than no-opping when assertions are disabled; the dump itself is the unconditional debug print. Reword accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 20:15

Copilot AI left a comment

Copy link
Copy Markdown

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 corrects misleading inline documentation around why the analysis skips “implicit” pointer keys in WALA propagation: the call-graph IR dump is triggered via an unconditional debug print (not a “no-op assertion” path). This is a comment-only change with no behavioral impact.

Changes:

  • Reworded the implicit-key skip comment in TensorGeneratorFactory to accurately describe the unconditional debug output behavior.
  • Reworded three corresponding implicit-key skip comments in PythonTensorAnalysisEngine for consistency and correctness.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client/TensorGeneratorFactory.java Updates the implicit-key skip explanation to “unconditional debug print.”
com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client/PythonTensorAnalysisEngine.java Aligns three implicit-key skip comments with the corrected “unconditional debug print” wording.

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

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.67%. Comparing base (51d93bb) to head (ff617d0).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #372   +/-   ##
=========================================
  Coverage     71.67%   71.67%           
  Complexity     2731     2731           
=========================================
  Files           272      272           
  Lines         20347    20347           
  Branches       3283     3283           
=========================================
  Hits          14583    14583           
  Misses         4470     4470           
  Partials       1294     1294           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@khatchad khatchad added this pull request to the merge queue Jun 10, 2026
Merged via the queue into master with commit cf20354 Jun 10, 2026
14 checks passed
@khatchad khatchad deleted the fix-no-op-assertion-comments branch June 10, 2026 23:02
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.

2 participants