• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
              • Input-files-implementation
                • Input-files-process-inputs
                • Input-files-gen-events
                • Input-files-process-preprocess-args
                • Input-files-process-inputs-and-gen-events
                • Input-files-complete-preprocess-extra-args
                • Input-files-process-ienv
                • Input-files-fn
                • Input-files-read-files
                • Input-files-process-const
                • String-stringlist-map-map-cons-values
                • Input-files-process-path
                • Input-files-process-files
                  • Input-files-process-process
                  • Input-files-preprocess-arg-std
                  • Input-files-process-preprocess
                  • Input-files-process-keep-going
                  • Input-files-process-inputp
                  • Input-files-preprocess-inputp
                  • *input-files-allowed-options*
                  • Input-files-definition
                • Input-files-prog
              • Compilation-database
              • Printer
              • Output-files
              • Abstract-syntax-operations
              • Implementation-environments
              • Abstract-syntax
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Input-files-implementation

    Input-files-process-files

    Process the :files input.

    Signature
    (input-files-process-files files-presentp files) 
      → 
    (mv erp new-files)
    Arguments
    files-presentp — Guard (booleanp files-presentp).
    Returns
    new-files — Type (string-listp new-files).

    Definitions and Theorems

    Function: input-files-process-files

    (defun input-files-process-files (files-presentp files)
     (declare (xargs :guard (booleanp files-presentp)))
     (let ((__function__ 'input-files-process-files))
      (declare (ignorable __function__))
      (b*
       (((reterr) nil)
        ((unless files-presentp)
         (reterr
          (msg
           "The :FILES input must be supplied, ~
                          but it was not supplied.")))
        ((unless (string-listp files))
         (reterr
          (msg
           "The :FILES input must evaluate to a list of strings, ~
                          but it evaluates to ~x0 instead."
           files)))
        ((unless (no-duplicatesp-equal files))
         (reterr
          (msg
           "The :FILES input must be a list without duplicates, ~
                          but the supplied ~x0 has duplicates."
           files)))
        ((unless (consp files))
         (reterr
          (msg
           "The :FILES input must contain at least one element, ~
                          but it does not contain any."))))
       (retok files))))

    Theorem: string-listp-of-input-files-process-files.new-files

    (defthm string-listp-of-input-files-process-files.new-files
      (b* (((mv acl2::?erp ?new-files)
            (input-files-process-files files-presentp files)))
        (string-listp new-files))
      :rule-classes :rewrite)