(x86-syscall-fstat x86) → x86
Function:
(defun x86-syscall-fstat (x86) (declare (xargs :stobjs (x86))) (declare (xargs :guard t)) (let ((__function__ 'x86-syscall-fstat)) (declare (ignorable __function__)) (b* ((ctx 'x86-syscall-fstat) (fd (rgfi *rdi* x86)) (statbuf (rgfi *rsi* x86)) ((mv ret x86) (syscall-fstat fd statbuf x86)) ((when (or (ms x86) (not (i64p ret)))) (!ms (list ctx :ret-val-or-ms-for-syscall-write ret) x86)) (x86 (!rgfi *rax* ret x86))) x86)))
Theorem:
(defthm x86p-of-x86-syscall-fstat (implies (and (x86p x86)) (b* ((x86 (x86-syscall-fstat x86))) (x86p x86))) :rule-classes :rewrite)