Skip to content

Comments

aci_simp checking#112

Open
HanielB wants to merge 1 commit intoufmg-smite:mainfrom
HanielB:aci_simp_checking
Open

aci_simp checking#112
HanielB wants to merge 1 commit intoufmg-smite:mainfrom
HanielB:aci_simp_checking

Conversation

@HanielB
Copy link
Contributor

@HanielB HanielB commented Feb 12, 2026

No description provided.

Comment on lines +1116 to +1133
impl Operator {
pub fn is_assoc(&self) -> bool {
match self {
Operator::And
| Operator::Or
| Operator::Add
| Operator::Mult
| Operator::BvAdd
| Operator::BvOr
| Operator::BvMul
| Operator::BvAnd
| Operator::BvXor
| Operator::BvConcat => true,
_ => false,
}
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these necessarily only the associative operators that aci_simp supports (e.g. div is left-associative but is not included here)? If so, I think it's better to keep this logic in the aci_simp function since it's only used there. If not, we can use the nary_case method instead, which contemplates all operators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants