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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.3","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
28 October 2021