Skip to content

fix: typo in resynth_genetic argument -mutation_probability#9686

Merged
maliberty merged 3 commits intoThe-OpenROAD-Project:masterfrom
suhr25:fix/rmp-resynth-genetic-mutation-probability-typo
Mar 8, 2026
Merged

fix: typo in resynth_genetic argument -mutation_probability#9686
maliberty merged 3 commits intoThe-OpenROAD-Project:masterfrom
suhr25:fix/rmp-resynth-genetic-mutation-probability-typo

Conversation

@suhr25
Copy link
Contributor

@suhr25 suhr25 commented Mar 7, 2026

SUMMARY

Fixes a typo in the resynth_genetic argument definition in src/rmp/src/rmp.tcl. The option was documented as
-mututation_probability while the parser expects -mutation_probability, causing the user value to be ignored.


FIX

Correct the typo in define_cmd_args so it matches the parser.

Before

[-mututation_probability mututation_probability]

After

[-mutation_probability mutation_probability]

VERIFICATION

Run:

resynth_genetic -liberty_file my.lib -mutation_probability 0.3

Expected: the argument is recognized and the mutation probability value is applied.

define_cmd_args had '-mututation_probability' (extra 'u') while
parse_key_args used the correct '-mutation_probability', causing the
user-supplied value to be silently ignored.

Signed-off-by: suhr25 <suhridmarwah07@gmail.com>
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a typo in the resynth_genetic command argument within src/rmp/src/rmp.tcl. The argument was incorrectly defined as -mututation_probability instead of -mutation_probability, which caused user-provided values for this option to be ignored. The change corrects the typo, aligning the argument definition with the parser's expectation and fixing the bug. The change is correct and self-contained.

@suhr25 suhr25 force-pushed the fix/rmp-resynth-genetic-mutation-probability-typo branch from 0fb4de5 to 3c90df7 Compare March 7, 2026 17:00
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

clang-tidy review says "All clean, LGTM! 👍"

Update resynth_genetic documentation to use the full option names that
match the actual Tcl implementation: -population_size,
-mutation_probability, -crossover_probability, -tournament_probability,
and -tournament_size. The README had abbreviated aliases that do not
exist in parse_key_args and would be silently ignored if used.

Signed-off-by: suhr25 <suhridmarwah07@gmail.com>
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

clang-tidy review says "All clean, LGTM! 👍"

@suhr25
Copy link
Contributor Author

suhr25 commented Mar 7, 2026

Hi @eder-matheus,
Thanks for the review.
I have made changes accordingly.
Please take a look.

@suhr25 suhr25 requested a review from eder-matheus March 7, 2026 17:54
@eder-matheus eder-matheus enabled auto-merge March 7, 2026 18:06
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus
Copy link
Member

@suhr25 Check the DCO error.

Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
auto-merge was automatically disabled March 8, 2026 00:42

Head branch was pushed to by a user without write access

@suhr25 suhr25 force-pushed the fix/rmp-resynth-genetic-mutation-probability-typo branch from 08d6a85 to 0e5a112 Compare March 8, 2026 00:42
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

@suhr25
Copy link
Contributor Author

suhr25 commented Mar 8, 2026

Hi @eder-matheus,
All checks are passing now.
Kindly take a look.
Thanks!

@maliberty maliberty merged commit e73dba3 into The-OpenROAD-Project:master Mar 8, 2026
14 checks 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.

3 participants