• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
            • Concrete-syntax
              • Grammar
              • Files
                • Fileset
                • File-at-path
                • Filedata
                  • Filedata-fix
                  • Filedata-equiv
                  • Make-filedata
                    • Filedata->unwrap
                    • Change-filedata
                    • Filedatap
                  • Fileset-paths
                  • Filepath-filedata-map
                  • Irr-fileset
                • Grammar-character-p
                • Keywords
                • Grammar-character-listp
                • File-paths
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Filedata

    Make-filedata

    Basic constructor macro for filedata structures.

    Syntax
    (make-filedata [:unwrap <unwrap>]) 
    

    This is the usual way to construct filedata structures. It simply conses together a structure with the specified fields.

    This macro generates a new filedata structure from scratch. See also change-filedata, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-filedata

    (defmacro make-filedata (&rest args)
      (std::make-aggregate 'filedata
                           args '((:unwrap))
                           'make-filedata
                           nil))

    Function: filedata

    (defun filedata (unwrap)
      (declare (xargs :guard (byte-listp unwrap)))
      (declare (xargs :guard t))
      (let ((__function__ 'filedata))
        (declare (ignorable __function__))
        (b* ((unwrap (mbe :logic (byte-list-fix unwrap)
                          :exec unwrap)))
          (list (cons 'unwrap unwrap)))))