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