Fix covers() for false and contradictions
This commit is contained in:
1 parent
49cdd39617
commit
1b14387aa2
2 files changed
+36
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user