• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
            • Semantics
              • Primitive-function-macros
                • Def-primitive-binary
                • Def-primitive-unary
                • Primitive-type-destructor
                • Primitive-type-predicate
                • Primitive-type-constructor
                • Def-long=>boolean-binary
                • Def-int=>boolean-binary
                • Def-int-binary
                • Def-float=>boolean-binary
                • Def-double=>boolean-binary
                • Def-long-binary
                  • Def-float-binary
                  • Def-double-binary
                  • Def-boolean-binary
                  • Def-long-unary
                  • Def-int-unary
                  • Def-float-unary
                  • Def-double-unary
                  • Def-boolean-unary
                • Primitive-values
                • Floating-point-placeholders
                • Pointers
                • Floating-point-value-set-parameters
                • Values
                • Primitive-operations
                • Primitive-conversions
                • Reference-values
          • 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
    • Primitive-function-macros

    Def-long-binary

    Specialization of def-primitive-binary to the case in which input and output types are long.

    Macro: def-long-binary

    (defmacro def-long-binary
              (name &key operation
                    nonzero commutative commutative-hints
                    (parents 'nil parents-suppliedp)
                    (short 'nil short-suppliedp)
                    (long 'nil long-suppliedp))
     (cons
      'def-primitive-binary
      (cons
       name
       (cons
        ':in-type-left
        (cons
         '(primitive-type-long)
         (cons
          ':in-type-right
          (cons
           '(primitive-type-long)
           (cons
            ':out-type
            (cons
             '(primitive-type-long)
             (cons
              ':operation
              (cons
               operation
               (cons
                ':nonzero
                (cons
                 nonzero
                 (cons
                  ':commutative
                  (cons
                   commutative
                   (cons
                    ':commutative-hints
                    (cons
                     commutative-hints
                     (append
                      (and parents-suppliedp
                           (list :parents parents))
                      (append (and short-suppliedp (list :short short))
                              (and long-suppliedp
                                   (list :long long)))))))))))))))))))))