fix to optimization
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@186 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
10227d1ae7
commit
7659e39bd3
@ -90,13 +90,13 @@ def futile_union_intersection_subtraction(n):
|
||||
replace_node(n,n.left)
|
||||
elif (n.name == 'ᑌ' and ((n.left.name=='σ' and n.left.child==n.right) or (n.right.name=='σ' and n.right.child==n.left))): #Union of two equal things, but one has a selection
|
||||
changes=1
|
||||
if n.left!='σ':#Selection on left. replacing self with right.
|
||||
if n.left=='σ':#Selection on left. replacing self with right.
|
||||
replace_node(n,n.right)
|
||||
else:#Selection on left. replacing self with right.
|
||||
replace_node(n,n.left)
|
||||
elif (n.name == 'ᑎ' and ((n.left.name=='σ' and n.left.child==n.right) or (n.right.name=='σ' and n.right.child==n.left))): #Intersection of two equal things, but one has a selection
|
||||
changes=1
|
||||
if n.left!='σ':#Swapping with the selection
|
||||
if n.left=='σ':#Swapping with the selection
|
||||
replace_node(n,n.left)
|
||||
else:
|
||||
replace_node(n,n.right)
|
||||
|
Loading…
Reference in New Issue
Block a user