Skip to content

Omit tautologies from UEQ equivalent expressions set #810

@secure-sw-dev-bot

Description

@secure-sw-dev-bot

This issue was copied from checkedc/checkedc-clang#814


For a compound assignment to a variable, e.g. i += 2, the UEQ set currently will contain { (i - 2) + 2, i}. This is the same as saying that i == i since (i - 2 + 2) == i (ignoring integer overflow), so this is a tautology and should not be included in UEQ.

The UEQ set should not contain equality facts implied by assignments to variables where the variable also appears on the right-hand side of the assignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions