Hi @Ridhi, when you run a Polyspace Bug Finder analysis in R2023b that includes duplicate-code detection, the results aren't shown in the usual Bug Viewer pane. Instead, they appear in a separate “Code Clone” section within the analysis report. Here’s how you can view them:
- Open the Polyspace Bug Finder Results Browser (this is usually shown after analysis completes, or can be launched via the toolbar).
- Look for a “Code Clone” or “Duplicate Code” tab or section alongside other result categories (such as “Alarms” or “No Early Return”).
- Click that tab to see all the instances of fully duplicated and partially duplicated code—Polyspace groups similarities by mirrored code blocks.
The key point is: the duplicate-code findings are not mixed into the usual bug or alarm list; they are accessed via a separate tab in the Bug Finder report viewer.
If you do not see the Code Clone tab:
- Ensure that in your analysis “Duplicate code detection” was enabled.
- In case you still can’t find it, reopen the report using:
spres = ps.report.open('your_analysis_report.psr');
and then search the report object for code clone findings:
clones = spres.find('Category','CodeClone');
Hope this helps!