Transform !(x != y) into x == y.
Can happen with lists.
This commit is contained in:
@@ -640,6 +640,12 @@ class foldconst(object):
|
||||
subexpr['ch'] = [subexpr['ch'][b], subexpr['ch'][a]]
|
||||
parent[index] = subexpr
|
||||
return
|
||||
if snt == '!=':
|
||||
subexpr['nt'] = '=='
|
||||
parent[index] = subexpr
|
||||
self.FoldTree(parent, index)
|
||||
return
|
||||
|
||||
return
|
||||
|
||||
if nt == '~':
|
||||
|
||||
Reference in New Issue
Block a user