• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                • Arithmetic-operations
                • Curve-parameterization
                • Shift-operations
                • Errors
                • Value-expressions
                • Locations
                  • Location
                    • Location-case
                    • Location-fix
                    • Location-count
                    • Location-equiv
                    • Locationp
                    • Location-tuple-comp
                      • Make-location-tuple-comp
                        • Location-tuple-comp->tuple
                        • Location-tuple-comp->index
                        • Change-location-tuple-comp
                      • Location-struct-comp
                      • Location-var
                      • Location-kind
                  • Input-execution
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Location-tuple-comp

    Make-location-tuple-comp

    Basic constructor macro for location-tuple-comp structures.

    Syntax
    (make-location-tuple-comp [:tuple <tuple>] 
                              [:index <index>]) 
    

    This is the usual way to construct location-tuple-comp structures. It simply conses together a structure with the specified fields.

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

    Definition

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

    Macro: make-location-tuple-comp

    (defmacro make-location-tuple-comp (&rest args)
      (std::make-aggregate 'location-tuple-comp
                           args '((:tuple) (:index))
                           'make-location-tuple-comp
                           nil))

    Function: location-tuple-comp

    (defun location-tuple-comp (tuple index)
      (declare (xargs :guard (and (locationp tuple) (natp index))))
      (declare (xargs :guard t))
      (let ((__function__ 'location-tuple-comp))
        (declare (ignorable __function__))
        (b* ((tuple (mbe :logic (location-fix tuple)
                         :exec tuple))
             (index (mbe :logic (nfix index) :exec index)))
          (cons :tuple-comp (list tuple index)))))