Fill the sections of the
(fill-data-segment-bytes h-size lc-size remaining-file mach-o state) → (mv err new-mach-o new-state)
Function:
(defun fill-data-segment-bytes (h-size lc-size remaining-file mach-o state) (declare (xargs :stobjs (mach-o state))) (declare (type (unsigned-byte 64) h-size) (type (unsigned-byte 64) lc-size)) (declare (xargs :guard (byte-listp remaining-file))) (let ((__function__ 'fill-data-segment-bytes)) (declare (ignorable __function__)) (b* (((mv flg mach-o state) (fill-data-data-section-bytes h-size lc-size remaining-file mach-o state)) ((when flg) (mv flg mach-o state)) ((mv flg mach-o state) (fill-data-dyld-section-bytes h-size lc-size remaining-file mach-o state)) ((when flg) (mv flg mach-o state)) ((mv flg mach-o state) (fill-data-const-section-bytes h-size lc-size remaining-file mach-o state)) ((when flg) (mv flg mach-o state)) ((mv flg mach-o state) (fill-data-bss-section-bytes h-size lc-size remaining-file mach-o state)) ((when flg) (mv flg mach-o state)) ((mv flg mach-o state) (fill-data-common-section-bytes h-size lc-size remaining-file mach-o state)) ((when flg) (mv flg mach-o state))) (mv flg mach-o state))))
Theorem:
(defthm good-mach-o-p-of-fill-data-segment-bytes.new-mach-o (implies (good-mach-o-p mach-o) (b* (((mv ?err ?new-mach-o ?new-state) (fill-data-segment-bytes h-size lc-size remaining-file mach-o state))) (good-mach-o-p new-mach-o))) :rule-classes :rewrite)
Theorem:
(defthm state-p-of-fill-data-segment-bytes.new-state (implies (state-p state) (b* (((mv ?err ?new-mach-o ?new-state) (fill-data-segment-bytes h-size lc-size remaining-file mach-o state))) (state-p new-state))) :rule-classes :rewrite)