Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

Object File, OMF Conversion

453_01: I cannot find a static function in the function list.

Question:

I have completed CasePlayer2 analysis in advanced mode of source files that include static functions. I can find non-static global functions in the function list, but not static functions. How can I test the static functions?


Answer:

There are 2 possibilities.

1. Static functions are listed as [filename]/[function name] (Ex. main.c/func1). Check to see if the static functions can be found in this format.

2. Due to compiler optimizations, the functions may have been inline expanded. Inline functions are not displayed in the function list because they are not function objects and cannot be tested by CoverageMaster. As a workaround, remove the inline expansion and compile as a normal function.

An example of an inline function by compiler optimization even when not explicitly specified as inline.

static int test(int input)
{
    return ( 0x00FFU & (input >> 0x08U));
}

[Additional info]
See the FAQ linked below for details on how to test inline functions by compiler optimizations and inline specifications.
102_08: How to test an inline function or a macro defined function?



Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Static Function
Technical Tips Google Search


Information Links