|
|
|
|
|
by porphyra
31 days ago
|
|
AI is a godsend for automotive coding. It's really annoying how at some ASIL levels you need 100% code coverage of unit tests. With AI, all you have to do is to get your agent to generate the tests! Likewise with all the MISRA C requirements. Need your cyclomatic complexity to be less than 10? It's just one prompt away! Now your spaghetti code can easily satisfy the safety requirements with much less effort. |
|
If you want 100% coverage, you just autogenerate the test cases. LLMs can't properly check MISRA requirements, so they're really just a layer on top existing automated checkers. Same for complexity metrics, it doesn't get merged if it violates that (or it's a vendor dependency you won't touch anyway).
If you care about the spirit of the rules, they're not that big a difference. If you don't care, there are already ways to do this. In either case they're an incremental change, not what I'd call a godsend.