• 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
                  • Type-compatiblep
                  • Type-uaconvert-signed-unsigned
                  • Type-uaconvert
                  • Type-integer-promote
                  • Type-params-compatiblep
                  • Type-option
                  • Type-formalp
                  • Ldm-type
                  • Make-pointers-to
                  • Type-list-default-arg-promote
                  • Type-uaconvert-unsigned
                  • Type-uaconvert-signed
                  • Type-default-arg-promote
                  • Type-default-arg-promotedp
                  • Type-params-composite
                  • Type-integer-promotedp
                  • Ldm-type-option-set
                  • Type-unsigned-integerp
                  • Type-standard-unsigned-integerp
                  • Type-signed-integerp
                  • Type-to-value-kind
                  • Type-standard-signed-integerp
                  • Ildm-type
                  • Type-arithmeticp
                  • Ldm-type-set
                  • Ldm-type-option
                  • Type-standard-integerp
                  • Type-option-set-formalp
                  • Type-real-floatingp
                  • Type-option-formalp
                  • Type-integerp
                  • Type-characterp
                  • Type-basicp
                  • Type-aggregatep
                  • Type-scalarp
                  • Type-realp
                  • Type-fpconvert
                  • Type-floatingp
                  • Type-complexp
                  • Type-set-formalp
                  • Type-apconvert
                  • Type-composite
                  • Ident-type-map
                  • Type-set
                  • Type-option-type-alist
                  • Type-option-set
                  • Type-list-compatiblep
                  • Irr-type-params
                  • Irr-type
                  • Type-list-composite
                  • Type/type-params/type-list
                    • Type
                      • Typep
                      • Type-case
                      • Type-kind
                      • Type-equiv
                      • Type-function
                      • Type-struct
                      • Type-pointer
                        • Make-type-pointer
                          • Type-pointer->to
                          • Change-type-pointer
                        • Type-array
                        • Type-void
                        • Type-ushort
                        • Type-unknown
                        • Type-union
                        • Type-ulong
                        • Type-ullong
                        • Type-uint
                        • Type-uchar
                        • Type-sshort
                        • Type-slong
                        • Type-sllong
                        • Type-sint
                        • Type-schar
                        • Type-ldoublec
                        • Type-ldouble
                        • Type-floatc
                        • Type-float
                        • Type-enum
                        • Type-doublec
                        • Type-double
                        • Type-char
                        • Type-bool
                        • Type-fix
                        • Type-count
                      • Type-params
                      • Type-list
                  • Abstract-syntax-anno-additional-theroems
                  • Valid-ext-info
                  • Valid-table
                  • 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
    • Type-pointer

    Make-type-pointer

    Basic constructor macro for type-pointer structures.

    Syntax
    (make-type-pointer [:to <to>]) 
    

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

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

    Definition

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

    Macro: make-type-pointer

    (defmacro make-type-pointer (&rest args)
      (std::make-aggregate 'type-pointer
                           args '((:to))
                           'make-type-pointer
                           nil))

    Function: type-pointer

    (defun type-pointer (to)
      (declare (xargs :guard (typep to)))
      (declare (xargs :guard t))
      (b* ((to (mbe :logic (type-fix to) :exec to)))
        (cons :pointer to)))