Skip to content

BinaryPredict's equals function compares ignore the op #3756

@yangzhg

Description

@yangzhg

Describe the bug
BinaryPredict's equals function compares ignore the op, the opcode is not init in this class, it will always be INVALID_OPCODE, so if a BinaryPredict has same child it will be qual, like a<1 and a>=1

    @Override
    public boolean equals(Object obj) {
        if (!super.equals(obj)) {
            return false;
        }
        return ((BinaryPredicate) obj).opcode == this.opcode;
    }

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