Convert a c$::const to a c::value-option.
(const-to-value const) → value?
Function:
(defun const-to-value (const) (declare (xargs :guard (constp const))) (let ((__function__ 'const-to-value)) (declare (ignorable __function__)) (const-case const :int (iconst-to-value const.unwrap) :otherwise nil)))
Theorem:
(defthm value-optionp-of-const-to-value (b* ((value? (const-to-value const))) (c::value-optionp value?)) :rule-classes :rewrite)