Concrete implementation of strin-len.
(sin$c-len sin$c) → *
Function:
(defun sin$c-len$inline (sin$c) (declare (xargs :stobjs (sin$c))) (declare (xargs :guard (sin$c-okp sin$c))) (let ((__function__ 'sin$c-len)) (declare (ignorable __function__)) (b* (((the string str) (sin$c-str sin$c)) ((the (unsigned-byte 60) pos) (sin$c-pos sin$c)) ((the (unsigned-byte 60) len) (length str))) (the (unsigned-byte 60) (- len pos)))))
Theorem:
(defthm sin-len{correspondence} (implies (and (sin$corr sin$c x) (strin-p x)) (equal (sin$c-len sin$c) (strin-len x))))