Skip to content

[AUTOMATED] Preserve call operand and receiver layouts - #9

Merged
mahaloz merged 34 commits into
Noelo-Lab:mainfrom
sjkim1127:codex/cpp-call-operands-stacked
Nov 9, 2026
Merged

mahaloz merged 34 commits into
Noelo-Lab:mainfrom
sjkim1127:codex/cpp-call-operands-stacked

Conversation

@sjkim1127

Copy link
Copy Markdown

[AUTOMATED]

Preserve bounded Joern call-operand layouts for named, pointer/closure, resolved member and unresolved member/expression calls. Where a base and receiver share an AST root, evaluate the receiver once; preserve generated intrinsic identities. Unknown inheritance, overload and qualified lookup are not guessed.

Dependency and review scope: This PR is stacked on #3, #6, and the explicit destructor follow-up (fork review). GitHub must target upstream main, so its current diff includes these prerequisites: 79 files, approximately 6,174 insertions. The isolated call-only diff is available in the merged fork review (17 files, +1,998/-38, including frozen references and tests). This is not independently merge-ready; after the prerequisites land, rebase to remove their changes and repeat validation on the final upstream base.

Validation on the submitted head against the dependent baseline:

  • All-target Rust tests, formatting, and Clippy passed. The focused call AST suite passed 10/10.
  • Python unittest ran 170 tests, with 16 skips for local DecBench and a platform-specific native test library. Original Joern C and C++ call-contract fixtures passed. These check selected identity and AST-role properties, not complete CPG or semantic parity.
  • Fixed 1,225 overlapping prepared C++ inputs were replayed against the dependent baseline in default and Joern-loop modes. Both maintained all parse statuses (1,165 parsed, 26 rejected, 34 with no methods). Full analyses changed for 859 inputs in each mode. A bounded audit accounted for 6,267 new unresolved call identities and 190 receiver edges to existing argument-zero AST roots, with no unexplained serialized differences in the audited view. This is not 1,225 independent programs or a benchmark score.

Fixture documentation and source references attribute the Joern 4.0.150 algorithms. Inheritance and overload resolution, full C++ semantics, a speedup, and DecBench score changes are outside the claim.

sjkim1127 and others added 30 commits October 19, 2026 14:14
[AUTOMATED] Share parser-local scope maps until mutation, preserving nested shadowing and existing graph output.
[AUTOMATED] Preserve explicit constructor and destructor bodies when owner names match, while retaining unsupported initializer diagnostics.
[AUTOMATED] Preserve member destructor identities and receiver evaluation; reject unsupported destructor argument forms.
Keep the GNU case-range operator in the generated table, and the C++ pack-size spelling in the lexical bridge, so the operator port does not change either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179iMKNTKZkNX6ZRBmB96eA
Every other restorable divergence has a joern_* option that original-reference comparisons request. Add joern_cpp_control_flow for the C++ evaluation-order fixes, starting with noexcept operands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179iMKNTKZkNX6ZRBmB96eA
Copilot AI balanced review requested due to automatic review settings November 9, 2026 16:57
@mahaloz
mahaloz merged commit 96e01bb into Noelo-Lab:main Nov 9, 2026

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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