Convert an iconst to a c::value-option.
(iconst-to-value iconst) → value?
Function:
(defun iconst-to-value (iconst) (declare (xargs :guard (c$::iconstp iconst))) (let ((__function__ 'iconst-to-value)) (declare (ignorable __function__)) (value-result-to-option (c::eval-iconst (c$::ldm-iconst iconst)))))
Theorem:
(defthm value-optionp-of-iconst-to-value (b* ((value? (iconst-to-value iconst))) (c::value-optionp value?)) :rule-classes :rewrite)