Filtering...

guard-theorem-no-simplify-dollar-tests

books/std/system/guard-theorem-no-simplify-dollar-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "guard-theorem-no-simplify-dollar")
include-book
(include-book "std/testing/assert-equal" :dir :system)
include-book
(include-book "std/testing/must-succeed-star" :dir :system)
other
(must-succeed* (defun foo
    (x)
    (if (consp x)
      (foo (cddr x))
      x))
  (assert-equal (guard-theorem-no-simplify$ 'foo nil t t state)
    '(if (not (consp x))
      't
      (if (consp (cdr x))
        't
        (equal (cdr x) 'nil)))))
other
(assert-equal (guard-theorem-no-simplify$ 'len nil t t state)
  '(if (not (consp x))
    't
    (acl2-numberp (len (cdr x)))))
other
(assert-equal (guard-theorem-no-simplify$ 'binary-+ nil t t state)
  ''t)