Skip to content

[Coverage][MC/DC] __builitin_expect may be handled as if parentheses #124565

@chapuni

Description

@chapuni
bool foo(bool a, bool b, bool c) {
    return a && __builtin_expect(b && c, true);
}
warning: unsupported MC/DC boolean expression; contains an operation with a nested boolean expression. Expression will not be covered

I think we may handle the example like a && (b && c) in MC/DC analysis.
Does anyone know other similar cases?

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