mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Transform !(x != y) into x == y.
Can happen with lists.
This commit is contained in:
parent
fd815f0bdb
commit
7e39635b09
1 changed files with 6 additions and 0 deletions
|
@ -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 == '~':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue