Polyspace 2018b boolean related 10.3 violation, is it a false positive ?

조회 수: 3 (최근 30일)
yogesh s
yogesh s 2020년 6월 7일
댓글: yogesh s 2020년 6월 16일
The below code with same configuration settings does not give 10.3 violation in Polyspace 2016b but gives 10.3 in polyspace 2018b:
(Note: The below code is a simplified version of Auto generated code)
typedef unsigned char boolean;
#define True 1U
#define False 0U
void main()
{ boolean a,b;
a = True; /* 10.3 violation only in 2018b */
b = False; /* 10.3 violation only in 2018b */
}

채택된 답변

Anirban
Anirban 2020년 6월 12일
Hi,
This is a bug that has been fixed in R2019b. You can upgrade to the later release or if you continue to use R2018b, justify those specific results coming from 10.3 violations on boolean typedef-s (set the status of those results to No action planned and add a comment explaining the issue). You can select multiple results in the Polyspace UI and add the same status and comment to them.
PS: In future, if you ask questions, can you also set the Product attribute in those questions? I noticed that a previous question of yours was not answered. If you set the Product attribute, there are greater chances of the question being noted.
  댓글 수: 3
Anirban
Anirban 2020년 6월 14일
Typically, bugs are recorded in External Bug Reports here: https://www.mathworks.com/support/bugreports/ .
But I could not find an External Bug Report about this specific issue. If you contact MathWorks Technical Support, they might be able to help you better.
yogesh s
yogesh s 2020년 6월 16일
Thanks for the information!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by