09-05-2012, 10:48 AM
The nature of generated code that will result from inlined MATLAB functions in a Stateflow chart is auto-code generator specific so it is very unlikely that deviation/exceptions will be identified for use of min/max/abs/any matlab function in that context in the MISRA AC SLSF document.
Future versions of supporting auto-code generator guideline documents, e.g. MISRA AC TL, may provide specific guidance on interpretation of MISRA AC SLSF guidelines. For instance, in this case there could be scope to identify allowable exceptions/deviations in the auto-code specific guidelines for use of min/max/abs functions in Stateflow charts when using the specified auto-code generator with particular settings where resultant generated code may be assured by following a specified style/guidance.
Future versions of supporting auto-code generator guideline documents, e.g. MISRA AC TL, may provide specific guidance on interpretation of MISRA AC SLSF guidelines. For instance, in this case there could be scope to identify allowable exceptions/deviations in the auto-code specific guidelines for use of min/max/abs functions in Stateflow charts when using the specified auto-code generator with particular settings where resultant generated code may be assured by following a specified style/guidance.
<t></t>