User`s guide

16 Model Objects That Receive Model Coverage
16-16
If, If Action Subsystem
The If block that causes an If Action Subsystem to execute receives condition, decision,
and MCDC coverage:
The software measures decision coverage for the if condition and all elseif
conditions defined in the If block.
If the if condition or any of the elseif conditions contains a logical expression with
multiple conditions, such as u1 & u2 & u3, the software also measures condition
and MCDC coverage for each condition in the expression, u1, u2, and u3 in the
preceding example.
The software does not directly measure the else condition. When there are no elseif
conditions, the else condition is the direct complement of the if condition, or the else
condition is the direct complement of the last elseif condition.
The software reports the total number of time steps that each if and elseif condition
evaluates to true and to false. If the if or elseif condition evaluates to true at least
once, and evaluates to false at least once, decision coverage is 100%. If no if or elseif
conditions are true, or if no if or elseif conditions are false, decision coverage is 50%.
If the previous if or elseif condition never evaluates as false, an elseif condition can
have 0% decision coverage.
The If block contains a comparison between its inputs. Therefore, if you select the
Relational Boundary coverage metric, the If block receives relational boundary
coverage. For more information, see “Relational Boundary Coverage”.
Interpolation Using Prelookup
The Interpolation Using Prelookup block receives lookup table coverage. For an n-D
lookup table, the number of output break points equals the product of all the number of
break points for each table dimension. The lookup table coverage measures:
The number of times during simulation that each combination of dimension input
values is between each of the break points.
The number of times during simulation that each combination of dimension input
values is below the lowest break point and above the highest break point for each
table dimension.
The total number of coverage points for an n-dimensional lookup table is the product of
the number of break points in each table dimension plus one. In the coverage report, an