MPI_Waitall should respect count arg (ConcreteInt only)
Depends on https://reviews.llvm.org/D158707
Differential D158813
[analyzer] MPIChecker: MPI_Waitall should respect count arg danix800 on Aug 24 2023, 10:03 PM. Authored by
Details
MPI_Waitall should respect count arg (ConcreteInt only) Depends on https://reviews.llvm.org/D158707
Diff Detail
Event TimelineComment Actions Let me try to summarize some of the variables: So, given an invocation like MPI_Waitall(C, Requests, Statues):
Please note that I have no idea what this checker does.
Comment Actions
Comment Actions It's really messy. I tried to refactor and clarify intentions with better naming. Thanks for the summary.
Comment Actions I don't have time this week, sorry. Comment Actions I reviewed this change and collected my suggestions in comments. In general, I feel that the code added by this commit is "sloppy" in the sense that it's designed for the common case and would behave unpredictably in unusual situations. This is a fault of the toolbox provided by the analyzer: in a saner world, you could freely combine the API functions (as you did) and expect that they would "just work" together; but in reality every function has its quirks and limitations, so the developer must understand the details of the implementation.
|
If these hunks are not closely related to the issue you intend to fix in this PR, I'd suggesst submitting it separately. That is a common API, and we wouldn't need tests for such defensive checks, as they rarely trigger.