Skip to content

Commit

Permalink
fix : erase doubtful rule
Browse files Browse the repository at this point in the history
  • Loading branch information
hotman78 committed Aug 4, 2021
1 parent 78e399d commit 203e26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jikka/Core/Convert/EqualitySolving.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ rule = simpleRewriteRule $ \case
-- reduce injective function
Equal' t (Minus' (Negate' a) (Negate' b)) Lit0 -> Just $ Equal' t (Minus' a b) Lit0
Equal' t (Minus' (Not' a) (Not' b)) Lit0 -> Just $ Equal' t (Minus' a b) Lit0
Equal' t (Minus' (BitNot' a) (BitNot' b)) Lit0 -> Just $ Equal' t (Minus' a b) Lit0
Equal' BoolTy (Minus' (BitNot' a) (BitNot' b)) Lit0 -> Just $ Equal' BoolTy (Minus' a b) Lit0
Equal' t (Minus' (Fact' a) (Fact' b)) Lit0 -> Just $ Equal' t (Minus' a b) Lit0
-- unpack list equality
Equal' _ (Nil' _) (Cons' _ _ _) -> Just LitFalse
Expand Down

0 comments on commit 203e26c

Please sign in to comment.