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