getting MISRA C:2012 Rule 10.1 warning in model advisor with bitwise operation in stateflow

2 ビュー (過去 30 日間)
Tim Shin
Tim Shin 2016 年 7 月 12 日
回答済み: Shivam Lahoti 2024 年 11 月 12 日
Hi, I am using R2015b with embedded coder, and I am getting Model advisor warning on MISRA C:2012 saying bitwise operations on siged integers were found:
where all arguments used for bitwise and (&) operators are unsigned integers. Any ideas how to pass this model advisor test?

回答 (1 件)

Shivam Lahoti
Shivam Lahoti 2024 年 11 月 12 日
Hi,
I understand that you are experiencing MISRA violations in your Simulink model. MISRA violations are important to address, as they help ensure your model adheres to industry-standard coding practices, particularly for safety-critical applications. To assist you, I've provided a link below that lists all the MISRA violations flagged in Simulink:
You can manually follow the suggested fixes for these violations to bring your model into compliance. Additionally, some of these Model Advisor violations come with automated fixes that are built into the tool. You can take advantage of these automated fixes to efficiently resolve the violations, saving time and effort while ensuring accuracy.
Regards,
Shivam.

カテゴリ

Help Center および File ExchangeMISRA C:2012 Compliance Considerations についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by