Skip to content

Does isMustBePresent get wrong value assigned? #3

@schnef

Description

@schnef

While parsing matches, the isMustBePresent gets a new value assigned using an XOR AllOfExpression.java line 105 . This will however reset the variable to being not critical if the variable was set to critical previously and a new match has the MustBePresent flag set. Should an OR operation be used instead of an XOR?

// update mustBePresent state of the variable: if it is set before in the expression.
intervals.get(varId).isMustBePresent = intervals.get(varId).isMustBePresent ^ isMustBePresent;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions