Convert a c::value-result to a c::value-option.
(value-result-to-option result) → value?
Function:
(defun value-result-to-option (result) (declare (xargs :guard (c::value-resultp result))) (let ((__function__ 'value-result-to-option)) (declare (ignorable __function__)) (if (c::errorp result) nil (c::value-fix result))))
Theorem:
(defthm value-optionp-of-value-result-to-option (b* ((value? (value-result-to-option result))) (c::value-optionp value?)) :rule-classes :rewrite)