• 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
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
            • Concrete-syntax
            • Disambiguation
            • Validation
              • Validator
              • Validation-information
                • Abstract-syntax-annop
                • Types
                • Abstract-syntax-anno-additional-theroems
                • Valid-ext-info
                • Valid-table
                  • Valid-tablep
                  • Valid-table-fix
                  • Valid-table-equiv
                  • Make-valid-table
                    • Valid-table->externals
                    • Change-valid-table
                    • Valid-table->scopes
                    • Valid-table->next-uid
                    • Valid-table->filepath
                  • Valid-ord-info
                  • Uid
                  • Stmts-types
                  • Lifetime
                  • Initdeclor-info
                  • Fundef-types
                  • Expr-type
                  • Valid-defstatus
                  • Var-info
                  • Valid-ord-info-option
                  • Valid-ext-info-option
                  • Uid-option
                  • Linkage-option
                  • Linkage
                  • Lifetime-option
                  • Valid-table-option
                  • Iconst-info
                  • Param-declor-nonabstract-info
                  • Fundef-info
                  • Expr-null-pointer-constp
                  • Valid-scope
                  • Const-expr-null-pointer-constp
                  • Expr-string-info
                  • Expr-funcall-info
                  • Expr-arrsub-info
                  • Tyname-info
                  • Transunit-info
                  • Expr-unary-info
                  • Expr-const-info
                  • Expr-binary-info
                  • Stmt-types
                  • Block-item-list-types
                  • Initer-type
                  • Valid-ord-scope
                  • Uid-increment
                  • Uid-equal
                  • Coerce-var-info
                  • Valid-externals
                  • Irr-var-info
                  • Valid-scope-list
                  • Irr-valid-table
                  • Irr-lifetime
                  • Irr-uid
                  • Irr-linkage
                  • Block-item-types
                  • Comp-stmt-types
              • 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
    • Valid-table

    Make-valid-table

    Basic constructor macro for valid-table structures.

    Syntax
    (make-valid-table [:filepath <filepath>] 
                      [:scopes <scopes>] 
                      [:externals <externals>] 
                      [:next-uid <next-uid>]) 
    

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

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

    Definition

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

    Macro: make-valid-table

    (defmacro make-valid-table (&rest args)
      (std::make-aggregate 'valid-table
                           args
                           '((:filepath)
                             (:scopes)
                             (:externals)
                             (:next-uid))
                           'make-valid-table
                           nil))

    Function: valid-table

    (defun valid-table (filepath scopes externals next-uid)
      (declare (xargs :guard (and (filepathp filepath)
                                  (valid-scope-listp scopes)
                                  (valid-externalsp externals)
                                  (uidp next-uid))))
      (declare (xargs :guard t))
      (b* ((filepath (mbe :logic (filepath-fix filepath)
                          :exec filepath))
           (scopes (mbe :logic (valid-scope-list-fix scopes)
                        :exec scopes))
           (externals (mbe :logic (valid-externals-fix externals)
                           :exec externals))
           (next-uid (mbe :logic (uid-fix next-uid)
                          :exec next-uid)))
        (list (cons 'filepath filepath)
              (cons 'scopes scopes)
              (cons 'externals externals)
              (cons 'next-uid next-uid))))