Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fixed a nullptr dereference bug #287

Merged
merged 2 commits into from
Sep 20, 2023
Merged

🐛 Fixed a nullptr dereference bug #287

merged 2 commits into from
Sep 20, 2023

Conversation

marcelwa
Copy link
Collaborator

@marcelwa marcelwa commented Sep 19, 2023

Description

Fixed a nullptr dereference bug.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

…ference bug within the fiction library. The layout is now checked to ensure that it implements the clocking scheme before asserting that it is an obstruction layout in the `improve_gate_location` function, guarding against null reference errors.

This change enhances code safety, preventing potential runtime issues that could arise from null pointer dereferencing. The changes also include an addition in reporting total runtime for post layout optimization.

Additional minor code refactoring was performed for better readability and to explicitly state the layout type requirements in the template typename declarations.

Lastly, code to handle optional return of stats from post layout optmization function has been added.
@marcelwa marcelwa added the bug Something isn't working label Sep 19, 2023
@marcelwa marcelwa self-assigned this Sep 19, 2023
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (44d0530) 95.42% compared to head (c0a0880) 95.41%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #287      +/-   ##
==========================================
- Coverage   95.42%   95.41%   -0.01%     
==========================================
  Files          96       96              
  Lines        9422     9427       +5     
==========================================
+ Hits         8991     8995       +4     
- Misses        431      432       +1     
Files Changed Coverage Δ
...on/algorithms/physical_design/hexagonalization.hpp 100.00% <100.00%> (ø)
...ithms/physical_design/post_layout_optimization.hpp 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

@github-actions
Copy link
Contributor

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

@marcelwa marcelwa merged commit 0b3b42f into main Sep 20, 2023
53 of 54 checks passed
@marcelwa marcelwa deleted the physical-design-fixes branch September 20, 2023 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant