(vl-pp-string x &key (ps 'ps)) → ps
Function:
(defun vl-pp-string-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-value-p x))) (declare (xargs :guard (vl-value-case x :vl-string))) (let ((__function__ 'vl-pp-string)) (declare (ignorable __function__)) (b* (((vl-string x) x) (length (length x.value))) (vl-ps-span "vl_str" (vl-print (vl-maybe-escape-string x.value 0 length (list #\"))) (vl-println? #\")))))
Theorem:
(defthm vl-pp-string-fn-of-vl-value-fix-x (equal (vl-pp-string-fn (vl-value-fix x) ps) (vl-pp-string-fn x ps)))
Theorem:
(defthm vl-pp-string-fn-vl-value-equiv-congruence-on-x (implies (vl-value-equiv x x-equiv) (equal (vl-pp-string-fn x ps) (vl-pp-string-fn x-equiv ps))) :rule-classes :congruence)