Check irrelevant-formals in definitions.
General Form: (chk-irrelevant-formals-ok def-or-defs)
where
Example Forms: ; Success: Returns (value t). (chk-irrelevant-formals-ok '(defun f (x0 x1 x2 x3 x4 x5) (declare (irrelevant x1 x3 x5 x4) (xargs :guard (natp x2))) (if (consp x0) (f (cdr x0) x1 x2 x5 x4 x3) nil))) ; Failure: Error message reports y irrelevant for both definitions. (chk-irrelevant-formals-ok '(mutual-recursion (defun f1 (x y) (if (consp x) (f2 (cdr x) y) t)) (defun f2 (x y) (if (consp x) (f1 (cdr x) y) nil))))
See irrelevant-formals-info for a related utility that returns a
single value. By contrast,