IBM Support

PM53095: PARTIALFIX - unnecessary for-loop generated in initRelations

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The code generated from my model contains three infinite for
    loops (i<231720888) that crash at run time.
    
         for (i = 0; i < 231720888; i++) {
         }
    
    The defect happening when the multiplicity is constant comparing
    to number.
    In this example, if you change the multiplicity of Part itsPump
    to be number (e.g. 5) instead of MAX_PUMPS_PER_DOCKING, and
    correspondingly change the ports (pPumpMedi_Docking,
    pPump_Docking) multiplicity to be 5
    You will see it is not happening
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    random for loop generated in initRelations when multiplicity
    is constant comparing to number
    

Problem conclusion

  • The original problem was fixed.
    Now - the code works correctly and does what it suppose to
    do.
    Another issue is that the code is unefficient (The outer
    loop (i) is redundant).
    If its important for the user - please issue another defect.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM53095

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-29

  • Closed date

    2012-12-24

  • Last modified date

    2012-12-24

  • 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 RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R751 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 7.5.1

Reference #: PM53095

Modified date: 24 December 2012