Get the sectname field from a mach-o-section-header.
(mach-o-section-header->sectname x) → sectname
This is an ordinary field accessor created by defprod.
Function:
(defun mach-o-section-header->sectname$inline (x) (declare (xargs :guard (mach-o-section-header-p x))) (declare (xargs :guard t)) (let ((__function__ 'mach-o-section-header->sectname)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::str-fix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm stringp-of-mach-o-section-header->sectname (b* ((sectname (mach-o-section-header->sectname$inline x))) (stringp sectname)) :rule-classes :rewrite)
Theorem:
(defthm mach-o-section-header->sectname$inline-of-mach-o-section-header-fix-x (equal (mach-o-section-header->sectname$inline (mach-o-section-header-fix x)) (mach-o-section-header->sectname$inline x)))
Theorem:
(defthm mach-o-section-header->sectname$inline-mach-o-section-header-equiv-congruence-on-x (implies (mach-o-section-header-equiv x x-equiv) (equal (mach-o-section-header->sectname$inline x) (mach-o-section-header->sectname$inline x-equiv))) :rule-classes :congruence)