3 questions
1 vote
2 answers
468 views
Array(Array'First) "array index check might fail"
While analyzing an Ada codebase with CodePeer, the tool is reporting that "array index check might fail" at a line that does this: Param(Param'First) := .... Param is a passed-in out parameter - and ...
0 votes
1 answer
114 views
Ada why check if an objects length is not equal to itself. Ex if(variable'Length /= variable'length)
I am reviewing some ada code and I keep seeing the following code throughout the project. if(variable'Length /= variable'length) return; end if Codepeer flags this as always false which makes ...