Preserve AND/OR flatness while extracting restriction OR clauses.
The code I added in commit f343a880 was careless about preserving AND/OR flatness: it could create a structure with an OR node directly underneath another one. That breaks an assumption that's fairly important for planning efficiency, not to mention triggering various Asserts (as reported by Benjamin Smith). Add a trifle more logic to handle the case properly.
Showing
Please register or sign in to comment