• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
              • Ienv
                • Ienvp
                • Ienv-fix
                • Make-ienv
                • Ienv->short-bytes
                • Ienv->llong-bytes
                  • Ienv-equiv
                  • Ienv->long-bytes
                  • Ienv->int-bytes
                  • Ienv->plain-char-signedp
                  • Change-ienv
                • Ushort-rangep
                • Ullong-rangep
                • Sshort-rangep
                • Sllong-rangep
                • Ulong-rangep
                • Uint-rangep
                • Slong-rangep
                • Sint-rangep
                • Ushort-max
                • Ulong-max
                • Ullong-max
                • Uint-max
                • Uchar-rangep
                • Sshort-min
                • Sllong-min
                • Schar-rangep
                • Char-min
                • Char-max
                • Sshort-max
                • Slong-min
                • Slong-max
                • Sllong-max
                • Sint-min
                • Sint-max
                • Uchar-max
                • Schar-min
                • Schar-max
                • Ienv-default
              • Concrete-syntax
              • Ascii-identifiers
              • Unambiguity
              • 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
    • Ienv

    Ienv->llong-bytes

    Get the llong-bytes field from a ienv.

    Signature
    (ienv->llong-bytes x) → llong-bytes
    Arguments
    x — Guard (ienvp x).
    Returns
    llong-bytes — Type (posp llong-bytes).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: ienv->llong-bytes$inline

    (defun ienv->llong-bytes$inline (x)
     (declare (xargs :guard (ienvp x)))
     (declare (xargs :guard t))
     (let ((__function__ 'ienv->llong-bytes))
      (declare (ignorable __function__))
      (mbe :logic
           (b* ((x (and t x))
                (short-bytes (acl2::pos-fix (cdr (std::da-nth 0 x))))
                (int-bytes (acl2::pos-fix (cdr (std::da-nth 1 x))))
                (long-bytes (acl2::pos-fix (cdr (std::da-nth 2 x))))
                (llong-bytes (acl2::pos-fix (cdr (std::da-nth 3 x))))
                (plain-char-signedp (bool-fix (cdr (std::da-nth 4 x)))))
             (if (and (<= short-bytes int-bytes)
                      (<= int-bytes long-bytes)
                      (<= long-bytes llong-bytes)
                      (<= 2 short-bytes)
                      (<= 4 int-bytes)
                      (<= 8 long-bytes)
                      (<= 8 llong-bytes))
                 llong-bytes
               8))
           :exec (cdr (std::da-nth 3 x)))))

    Theorem: posp-of-ienv->llong-bytes

    (defthm posp-of-ienv->llong-bytes
      (b* ((llong-bytes (ienv->llong-bytes$inline x)))
        (posp llong-bytes))
      :rule-classes :rewrite)

    Theorem: ienv->llong-bytes$inline-of-ienv-fix-x

    (defthm ienv->llong-bytes$inline-of-ienv-fix-x
      (equal (ienv->llong-bytes$inline (ienv-fix x))
             (ienv->llong-bytes$inline x)))

    Theorem: ienv->llong-bytes$inline-ienv-equiv-congruence-on-x

    (defthm ienv->llong-bytes$inline-ienv-equiv-congruence-on-x
      (implies (ienv-equiv x x-equiv)
               (equal (ienv->llong-bytes$inline x)
                      (ienv->llong-bytes$inline x-equiv)))
      :rule-classes :congruence)