Filtering...

all-program-ffn-symbs-tests

books/std/system/all-program-ffn-symbs-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "all-program-ffn-symbs")
include-book
(include-book "std/testing/assert-equal" :dir :system)
include-book
(include-book "std/testing/must-succeed-star" :dir :system)
other
(assert-equal (all-program-ffn-symbs 'x nil (w state)) nil)
other
(assert-equal (all-program-ffn-symbs ''4 nil (w state)) nil)
other
(assert-equal (all-program-ffn-symbs '(cons x y) nil (w state))
  nil)
other
(must-succeed* (defun f (x) (declare (xargs :mode :program)) x)
  (defun g (x) (declare (xargs :mode :logic)) x)
  (assert-equal (all-program-ffn-symbs '(cons (f x) (g (f y)))
      nil
      (w state))
    '(f)))