• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Scope-of-defines
          • Vl-find-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
          • Vl-load-main
          • Extended-characters
            • Vl-location
            • Vl-echar-p
              • Make-vl-echar-fast
              • Vl-echar->char
              • Vl-echar
              • Vl-echar->loc
              • Vl-echarpack-p
                • Vl-echarpack
                  • Vl-echarpack->code
                  • Vl-echarpack->col
                  • Vl-echarpack->line
              • Vl-echarlist->chars
              • Vl-echarlist-from-chars
              • Vl-echarlist-from-str
              • Vl-echarlist-unsigned-value
              • Vl-change-echarlist-locations
              • Vl-echar-digit-value
              • Vl-echarlist->string
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-echarpack-p

    Vl-echarpack

    Signature
    (vl-echarpack code line col) → *
    Arguments
    code — Guard (unsigned-byte-p 8 code).
    line — Guard (posp line).
    col — Guard (natp col).

    Definitions and Theorems

    Function: vl-echarpack$inline

    (defun vl-echarpack$inline (code line col)
     (declare (xargs :guard (and (unsigned-byte-p 8 code)
                                 (posp line)
                                 (natp col))))
     (declare (type (unsigned-byte 8) code))
     (let ((__function__ 'vl-echarpack))
       (declare (ignorable __function__))
       (if
        (and (< (the (integer 0 *) line) (expt 2 30))
             (< (the (integer 0 *) col) (expt 2 22)))
        (let* ((line-shift (the (unsigned-byte 60)
                                (ash (the (unsigned-byte 30) line) 30)))
               (col-shift (the (unsigned-byte 30)
                               (ash (the (unsigned-byte 22) col) 8))))
          (the (unsigned-byte 60)
               (logior (the (unsigned-byte 60)
                            (logior (the (unsigned-byte 60) line-shift)
                                    (the (unsigned-byte 30) col-shift)))
                       (the (unsigned-byte 8) code))))
        (cons (cons line col) code))))

    Theorem: vl-echarpack-p-of-vl-echarpack

    (defthm vl-echarpack-p-of-vl-echarpack
      (implies (and (force (unsigned-byte-p 8 code))
                    (force (posp line))
                    (force (natp col)))
               (vl-echarpack-p (vl-echarpack code line col))))