other
(in-package "ACL2")
other
(set-state-ok t)
foo-implfunction
(defun foo-impl (x state y) (declare (xargs :guard (symbolp x))) (mv (cons x y) state))
other
(defttag :defproxy-test)
other
(make-event (mv-let (def state) (foo-impl 'defun state '(bar (x) (cons x x))) (value def)))
other
(assert-event (equal (bar 3) '(3 . 3)))
other
(verify-guards foo-impl)
other
(assert-event (equal (bar 3) '(3 . 3)))
other
(defttag nil)
encapsulate
(encapsulate ((foo (x state y) (mv t state) :guard (and (symbolp x) x))) (local (defun foo (x state y) (declare (ignore x y)) (mv nil state))))
other
(make-event (mv-let (def state) (foo-impl 'defun state '(bar2 (x) (cons x x))) (value def)))
other
(assert-event (equal (bar2 3) '(3 . 3)))