Skip to content

[llvm-cov][MC/DC][Qualification] No MCDC coverage measured for minimal expressions #109930

Open
@escherle-validas

Description

@escherle-validas

No MCDC coverage measured for minimal expressions

Criticality: HIGH

During qualification of MCDC coverage at Validas we found that
no MCDC coverage is measured when there is a boolean term consisting only of one atom.
In the case of a single element MCDC is defined and should be measured.
In the attached example the term "if (v0)" is not instrumented at all for MCDC.
The problem occurs within Rust and C++ (see attached reduced examples).

Rust example
One_atom_rust
Test_000001.zip

C++ example:
One_atom_cpp
Test_000001.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions