Implement depth-awareness when enforcing precedence between union/intersection operators (#3730)

Co-authored-by: GuySten <guyste@post.bgu.ac.il>
This commit is contained in:
Paul Romano 2026-01-15 22:23:35 -06:00 committed by GitHub
parent 179048b801
commit 51ea89ccc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 161 additions and 49 deletions

View file

@ -123,11 +123,11 @@ private:
//! BoundingBox if the particle is in a complex cell.
BoundingBox bounding_box_complex(vector<int32_t> postfix) const;
//! Enfource precedence: Parenthases, Complement, Intersection, Union
void add_precedence();
//! Enforce precedence between intersections and unions
void enforce_precedence();
//! Add parenthesis to enforce precedence
int64_t add_parentheses(int64_t start);
void add_parentheses(int64_t start);
//! Remove complement operators from the expression
void remove_complement_ops();