Skip to content

Fix C function extraction across conditional signatures - #20

Merged
Dshuishui merged 1 commit into
mainfrom
fix/c-conditional-function-extraction
Oct 24, 2026
Merged

Dshuishui merged 1 commit into
mainfrom
fix/c-conditional-function-extraction

Conversation

@LuoBoT1122

Copy link
Copy Markdown

Fix missing C functions when conditional branches provide alternative
signatures sharing a single function body. Preserve source offsets
and leave unrelated or ambiguous conditionals untouched.

Prevent parser recovery artifacts named after control keywords from
becoming C functions, while keeping their body calls attributed to
the enclosing function. Apply the same handling to WASM and native
extraction.

Validation:

  • Build and native kernel compilation passed.
  • 164 related tests passed.
  • Regression coverage includes LF/CRLF, alternative signatures,
    function-pointer parameters, call ownership, and WASM/native parity.

@Dshuishui
Dshuishui merged commit 190d40a into main Oct 24, 2026
1 check 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.

2 participants