From 980b588986505b496a6f6611dfb1bc160ed1603c Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 11 Oct 2019 19:38:05 +0200 Subject: [PATCH] Add FIXME and TODO --- lslopt/lslfoldconst.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lslopt/lslfoldconst.py b/lslopt/lslfoldconst.py index e4b2fdd..a476721 100644 --- a/lslopt/lslfoldconst.py +++ b/lslopt/lslfoldconst.py @@ -1276,9 +1276,11 @@ class foldconst(object): if self.CompareTrees(child[0], child[1]): # expr == expr -> 1 + # FIXME: not true if NaN parent[index] = nr(nt='CONST', t='integer', value=1, SEF=True) return + # TODO: Simplify if ((x & y) == y) for constant y to if (!(~x & y)) return if nt in ('<=', '>=') or nt == '!=' and child[0].t != 'list':