• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-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
    • Tokens

    Vl-token->breakp

    Identify whether a token was the first token on a line.

    Signature
    (vl-token->breakp x) → breakp
    Arguments
    x — Guard (vl-token-p x).
    Returns
    breakp — Type (booleanp breakp).

    Definitions and Theorems

    Function: vl-token->breakp$inline

    (defun vl-token->breakp$inline (x)
      (declare (xargs :guard (vl-token-p x)))
      (let ((__function__ 'vl-token->breakp))
        (declare (ignorable __function__))
        (mbe :logic
             (if (cond ((vl-inttoken-p x)
                        (vl-inttoken->breakp x))
                       ((vl-idtoken-p x)
                        (vl-idtoken->breakp x))
                       ((vl-sysidtoken-p x)
                        (vl-sysidtoken->breakp x))
                       ((vl-stringtoken-p x)
                        (vl-stringtoken->breakp x))
                       ((vl-realtoken-p x)
                        (vl-realtoken->breakp x))
                       ((vl-timetoken-p x)
                        (vl-timetoken->breakp x))
                       ((vl-extinttoken-p x)
                        (vl-extinttoken->breakp x))
                       ((vl-plaintoken-p x)
                        (vl-plaintoken->breakp x)))
                 t
               nil)
             :exec (case (tag x)
                         (:vl-inttoken (cddddr x))
                         ((:vl-idtoken :vl-sysidtoken
                                       :vl-stringtoken :vl-timetoken)
                          (cdddr x))
                         (:vl-extinttoken (caddr x))
                         (otherwise (cddr x))))))

    Theorem: booleanp-of-vl-token->breakp

    (defthm booleanp-of-vl-token->breakp
      (b* ((breakp (vl-token->breakp$inline x)))
        (booleanp breakp))
      :rule-classes :type-prescription)