• 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
            • Lex-strings
            • Lex-identifiers
            • Vl-typo-uppercase-p
            • Vl-typo-number-p
            • Vl-typo-lowercase-p
            • Lex-numbers
            • Chartypes
            • Vl-lex
            • Defchar
            • Tokens
              • Vl-tokentype-p
              • Vl-inttoken-p
                • Vl-inttoken
                  • Make-vl-inttoken
                  • Change-vl-inttoken
                  • Honsed-vl-inttoken
                  • Vl-inttoken-constraint-p
                  • Make-honsed-vl-inttoken
                  • Vl-inttoken->width
                  • Vl-inttoken->wasunsized
                  • Vl-inttoken->value
                  • Vl-inttoken->signedp
                  • Vl-inttoken->etext
                  • Vl-inttoken->breakp
                  • Vl-inttoken->bits
                • Vl-plaintoken-p
                • Vl-token->etext
                • Vl-token-p
                • Vl-idtoken-p
                • Vl-token->type
                • Vl-timetoken-p
                • Vl-stringtoken-p
                • Vl-sysidtoken-p
                • Vl-extinttoken-p
                • Vl-realtoken-p
                • Vl-kill-whitespace-and-comments
                • Vl-tokenlist->etext
                • Vl-tokenlist-p
                • Vl-tokenlist->string-with-spaces
                • Vl-idtoken-list-p
                • Vl-tokentypelist-p
                • Vl-token->breakp
                • Vl-token->loc
                • Vl-plaintokentypelist-p
                • Vl-tokenlistlist-p
                • Vl-token->string
              • Lex-keywords
              • Lexstate
              • Make-test-tokens
              • Lexer-utils
              • Lex-comments
              • Vl-typo-uppercase-list-p
              • Vl-typo-lowercase-list-p
              • Vl-typo-number-list-p
            • 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-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-inttoken-p

    Vl-inttoken

    Raw constructor for vl-inttoken-p structures.

    Syntax:

    (vl-inttoken etext width 
                 signedp value bits wasunsized breakp)

    This is the lowest-level constructor for vl-inttoken-p structures. It simply conses together a structure with the specified fields.

    Note: It's generally better to use macros like make-vl-inttoken or change-vl-inttoken instead. These macros lead to more readable and robust code, because you don't have to remember the order of the fields.

    The vl-inttoken-p structures we create here are just constructed with ordinary cons. If you want to create honsed structures, see honsed-vl-inttoken instead.

    Definition

    This is an ordinary constructor function introduced by defaggregate.

    Function: vl-inttoken

    (defun vl-inttoken (etext width
                              signedp value bits wasunsized breakp)
     (declare
       (xargs :guard (and (and (vl-echarlist-p etext)
                               (consp etext))
                          (posp width)
                          (booleanp signedp)
                          (maybe-natp value)
                          (vl-bitlist-p bits)
                          (booleanp wasunsized)
                          (booleanp breakp)
                          (vl-inttoken-constraint-p width value bits))))
     (cons :vl-inttoken
           (std::prod-cons
                (std::prod-cons etext (std::prod-cons width signedp))
                (std::prod-cons (std::prod-cons value bits)
                                (std::prod-cons wasunsized breakp)))))