• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
          • Vl-lintconfig-p
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
          • Portcheck
          • Duplicate-detect
            • Vl-modulelist-duplicate-detect
            • Vl-duplicate-assign-warnings
            • Vl-duplicate-modinst-warnings
            • Vl-duplicate-gateinst-warnings
            • Vl-duplicate-modinst-locations
            • Vl-duplicate-gateinst-locations
            • Vl-duplicate-assign-locations
            • Vl-module-duplicate-detect
            • Vl-make-duplicate-warning
              • Vl-locationlist-string
              • Vl-design-duplicate-detect
            • Vl-print-certain-warnings
            • Duperhs-check
            • *vl-lint-help*
            • Lint-stmt-rewrite
            • Drop-missing-submodules
            • Check-case
            • Drop-user-submodules
            • Check-namespace
            • Vl-lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-make-duplicate-warning

    Vl-locationlist-string

    Signature
    (vl-locationlist-string n) → str
    Arguments
    n — Guard (natp n).
    Returns
    str — Type (stringp str).

    Definitions and Theorems

    Function: vl-locationlist-string

    (defun vl-locationlist-string (n)
      (declare (xargs :guard (natp n)))
      (declare (xargs :guard (<= n 9)))
      (let ((__function__ 'vl-locationlist-string))
        (declare (ignorable __function__))
        (cond ((zp n) "")
              ((= n 1) (cat "~l1"))
              ((= n 2) (cat "~l2 and ~l1"))
              (t (cat "~l" (natstr n)
                      ", "
                      (vl-locationlist-string (- n 1)))))))

    Theorem: stringp-of-vl-locationlist-string

    (defthm stringp-of-vl-locationlist-string
      (b* ((str (vl-locationlist-string n)))
        (stringp str))
      :rule-classes :type-prescription)