File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -752,8 +752,8 @@ let rec simplify_and ~n (e1 : t) (e2 : t) : t option =
752
752
match simplify_and ~n: (n + 1 ) a b with
753
753
| None -> None
754
754
| Some e -> simplify_and_force ~n: (n + 1 ) e e2)
755
- | Some a_ , None -> simplify_and_force ~n: (n + 1 ) a_ e2
756
- | None , Some b_ -> simplify_and_force ~n: (n + 1 ) e1 b_
755
+ | Some a_ , None -> simplify_and_force ~n: (n + 1 ) a_ b
756
+ | None , Some b_ -> simplify_and_force ~n: (n + 1 ) a b_
757
757
| Some a_ , Some b_ -> simplify_and_force ~n: (n + 1 ) a_ b_)
758
758
| _ , Bin (And, a , b ) ->
759
759
simplify_and ~n: (n + 1 )
@@ -763,7 +763,10 @@ let rec simplify_and ~n (e1 : t) (e2 : t) : t option =
763
763
let ao = simplify_and ~n: (n + 1 ) a e2 in
764
764
let bo = simplify_and ~n: (n + 1 ) b e2 in
765
765
match (ao, bo) with
766
- | None , _ | _ , None -> None
766
+ | None , _ | _ , None -> (
767
+ match simplify_or ~n: (n + 1 ) a b with
768
+ | None -> None
769
+ | Some e -> simplify_and_force ~n: (n + 1 ) e e2)
767
770
| Some a_ , Some b_ -> simplify_or_force ~n: (n + 1 ) a_ b_)
768
771
| ( Bin
769
772
( ((EqEqEq | NotEqEq ) as op1),
You can’t perform that action at this time.
0 commit comments