IBM Support

PM54116: functions using constant parameters not being RT.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The problem is that Rhapsody does not roundtrip code for
    functions that have const arguments. This only occurs if the
    project is configured to generate In arguments as const (this is
    the default setting of Rhapsody) under the model properties
    C_CG->Type->In.
    
    So, if I created a file called MyFile under one of our project
    packages and add function MyFunction with 2 In parameters int a
    and int b (type selected by use existing type), then created a
    flowchart for the function behavior, the result when generated
    would be:
    
    MyFile.c
    
    void MyFunction(const int a, const int b)
    
    Changes to this function are not picked up by Rhapsody. I'm not
    sure if this is true 100% of the time, but I've observed it with
    a package containing a couple of files, each with a few
    functions.
    
    As a workaround we have simply set the default generation of In
    arguments to be just $type instead of const $type.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Functions with const arguments are not roundtripped.
    

Problem conclusion

  • Fixed in version 8.0
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM54116

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    753

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-12-12

  • Closed date

    2012-09-21

  • Last modified date

    2012-09-21

  • 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

  • R753 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 7.5.3

Reference #: PM54116

Modified date: 21 September 2012