Function:
(defun vl-pps-expr-elided (x) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-pps-expr-elided)) (declare (ignorable __function__)) (b* ((str (vl-pps-expr x)) ((when (<= (length str) 50)) str)) (cat (subseq str 0 50) "..."))))
Theorem:
(defthm stringp-of-vl-pps-expr-elided (b* ((str (vl-pps-expr-elided x))) (stringp str)) :rule-classes :type-prescription)
Theorem:
(defthm vl-pps-expr-elided-of-vl-expr-fix-x (equal (vl-pps-expr-elided (vl-expr-fix x)) (vl-pps-expr-elided x)))
Theorem:
(defthm vl-pps-expr-elided-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-pps-expr-elided x) (vl-pps-expr-elided x-equiv))) :rule-classes :congruence)