IBM Support

PM31550: Expected violation by MISRA 16_8_i or MISRA_Rule83i

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The MISRA 16_8_i rule description states that ?For functions
    with non-void return type, there shall be one return statement
    for every exit branch (including the end of the program)?
    When the below code is checked for MISRA 16_8_i or MISRA_Rule83i
    violations, no violations are reported.
    
    static int test ( int param_1608 )
    {
      if ( param_1608 ? 5U )
      {
          return ( param_1608 );
    }
    }
    
    I understand that the observed behavior is a  Defect, please
    clarify if otherwise.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The MISRA 16_8_i rule description states that ?For functions
    with non-void return type, there shall be one return
    statement for every exit branch (including the end of the
    program)?
    When the below code is checked for MISRA 16_8_i or
    MISRA_Rule83i violations, no violations are reported.
    
    int test ( int temp )
    {
    
      if ( temp  ? 5U )
      {
    
          return ( temp  );
    }
    
    }
    

Problem conclusion

  • Fixed in Rational Logiscope 6.6.3 iFix2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM31550

  • Reported component name

    TLOGIC LOGISCOP

  • Reported component ID

    5724V81LS

  • Reported release

    660

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-31

  • Closed date

    2011-03-30

  • Last modified date

    2011-03-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC LOGISCOP

  • Fixed component ID

    5724V81LS

Applicable component levels

  • R660 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYQHS","label":"Rational Logiscope"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.6","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
30 March 2011