MISRA's not great itself, though. Half of it is obvious and could be summarised as 'don't invoke undefined behaviour' a quarter is rules to get around absolutely terrible ancient compiler problems, and a quarter are arbitrary restrictions that don't really help improve code quality much. For example, the interface of this function wouldn't break any MISRA rules in a way that would force it to be any better.