Look up the value of an AIG variable in an environment.
(aig-env-lookup x env) → *
Unbound variables are given the default value
Function:
(defun aig-env-lookup (x env) (declare (xargs :guard t)) (let ((__function__ 'aig-env-lookup)) (declare (ignorable __function__)) (let ((look (hons-get x env))) (if look (and (cdr look) t) (mbe :logic t :exec (if *aig-env-lookup-warn-missing-binding* (prog2$ (aig-env-lookup-missing-output x) t) t))))))