Skip to content

Switch-case blocks are not considered as branches by LTest #55

@dlonguet

Description

@dlonguet

LTest does not consider switch-case blocks as branches (for criterion DC for instance), I think because Frama-C does not rewrite these blocks during preprocessing. It seems that while and for loops, as well as the conditional ternary operator are rewritten with if statements by Frama-C, and then annotated by LTest as branches.

Can it be considered using the option -simplify-cfg of Frama-C to normalize the switch-case blocks so that LTest would annotate their branches? Should it be a (yet another) SeaCoral configuration option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions