Skip to content

Conversation

@emaxx-google
Copy link
Collaborator

@emaxx-google emaxx-google commented Aug 5, 2025

Only consider typedefs that depend on other typedefs in replace-dependent-typedef.

This prevents the pass from reporting a success when no actual change has been made, like in the case when a typedef belongs to and refers to a template struct (where multiple possible string representations may confuse the checks).

This fixes the problem with this heuristic highlighted in #156.

Note: essentially the same change was originally proposed in the upstream -
C-Reduce - however that project seems unmaintained at the moment:
csmith-project/creduce#281

@emaxx-google emaxx-google requested a review from VitaNuo August 12, 2025 22:02
Copy link
Collaborator

@VitaNuo VitaNuo left a comment

Choose a reason for hiding this comment

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

Thanks!

@emaxx-google emaxx-google changed the base branch from clang_delta--dependent-typedef-tests to master August 13, 2025 13:58
Only consider typedefs that depend on other typedefs in
replace-dependent-typedef.

This prevents the pass from reporting a success when no actual change
has been made, like in the case when a typedef belongs to and refers to
a template struct (where multiple possible string representations may
confuse the checks).
@emaxx-google emaxx-google force-pushed the clang_delta--dependent-typedef-error branch from 0943c70 to ece8354 Compare August 13, 2025 13:58
@emaxx-google emaxx-google merged commit 59e9058 into marxin:master Aug 13, 2025
10 checks passed
@emaxx-google emaxx-google deleted the clang_delta--dependent-typedef-error branch August 13, 2025 15:45
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