Fix covers() for false and contradictions

This commit is contained in:
Zaid Humaimidi committed 2026-03-12 10:21:03 -07:00
1 parent 49cdd39617
commit 1b14387aa2
2 files changed
+36 -2

No files matched your search

+1 -1
View File
@@ -955,7 +955,7 @@ export function covers(expr1: Expression, expr2: Expression): boolean {
expr2 = normalize(expr2);
if (!expr2) return true;
expr1 = normalize(expr1);
if (!Array.isArray(expr1)) return !!expr1;
if (!Array.isArray(expr1) && expr1) return true;
const synt1 = Clause.fromExpression(expr1);
const synt2 = Clause.fromExpression(expr2);