Code prover wants userdef function for critical section
2 ビュー (過去 30 日間)
古いコメントを表示
Stein Heselmans
2017 年 8 月 30 日
コメント済み: Stein Heselmans
2017 年 8 月 31 日
From code-prover i get this error:
Stubbing standard library functions ...
Propagating data types... 50%
Propagating data types... 100%
Analyzing data type mismatch... 50%
Analyzing data type mismatch... 100%
Finalizing data type handling
Stubbing unknown functions ...
Error: Verifier found an error in parameter -critical-section: function "fenter_critical" must be a userdef function
Error: Verifier found an error in parameter -critical-section: function "fexit_critical" must be a userdef function
Command option was:
polyspace-code-prover-nodesktop ... -critical-section-begin fenter_critical:cs1 -critical-section-end fexit_critical:cs1 ...
The functions are defined as:
void fenter_critical(void) {}
void fexit_critical(void) {}
How do i solve this error?
0 件のコメント
採用された回答
Alexandre De Barros
2017 年 8 月 30 日
Hello,
can you check if fenter_critical() and fexit_critical() are always declared in every file where they are used? I can reproduce the same message with this code:
//void fenter_critical(void);
//void fexit_critical(void);
void task(void) {
fenter_critical();
fexit_critical();
};
void main() {
}
If the declarations are uncommented, then there is no problem.
--- Alex
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polyspace Code Prover についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!