• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
      • Def-universal-equiv
      • Def-saved-obligs
      • With-supporters-after
      • Definec
      • Sig
      • Outer-local
      • Data-structures
        • Deflist
        • Defalist
        • Memory
        • Defstructure
        • Array1
        • Utilities
          • Defloop
          • Get-option
            • Get-option-argument
            • Get-option-member
            • Get-option-check-syntax
            • Get-option-subset
            • Get-option-as-flag
            • Get-option-entries
              • Keyword-option-listp
              • Get-option-entry
              • Get-option-keywords
            • Get-guards-from-body
            • Unique-symbols
            • Pack-intern
            • Pack-string
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Get-option

    Get-option-entries

    Returns all occurrences of option entries for option in l.

    Definitions and Theorems

    Function: get-option-entries

    (defun get-option-entries (option l)
      (declare (xargs :guard (and (keywordp option)
                                  (keyword-option-listp l))))
      (cond ((atom l) 'nil)
            (((lambda (x)
                (or (eq option x)
                    (and (consp x) (eq option (car x)))))
              (car l))
             (cons ((lambda (x) x) (car l))
                   (get-option-entries option (cdr l))))
            (t (get-option-entries option (cdr l)))))