Get the args field from a expr-funcall.
(expr-funcall->args x) → args
This is an ordinary field accessor created by fty::defprod.
Function:
(defun expr-funcall->args$inline (x) (declare (xargs :guard (exprp x))) (declare (xargs :guard (equal (expr-kind x) :funcall))) (let ((__function__ 'expr-funcall->args)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (expr-kind x) :funcall) x))) (expr-list-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm expr-listp-of-expr-funcall->args (b* ((args (expr-funcall->args$inline x))) (expr-listp args)) :rule-classes :rewrite)
Theorem:
(defthm expr-funcall->args$inline-of-expr-fix-x (equal (expr-funcall->args$inline (expr-fix x)) (expr-funcall->args$inline x)))
Theorem:
(defthm expr-funcall->args$inline-expr-equiv-congruence-on-x (implies (expr-equiv x x-equiv) (equal (expr-funcall->args$inline x) (expr-funcall->args$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm expr-funcall->args-when-wrong-kind (implies (not (equal (expr-kind x) :funcall)) (equal (expr-funcall->args x) (expr-list-fix nil))))