• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
            • Parse-expressions
            • Parse-udps
            • Parse-statements
            • Parse-property
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-functions
            • Parse-assignments
            • Parse-clocking
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-netdecls
            • Parse-asserts
              • Vl-parse-0+-assertion-variable-declarations
              • Vl-parse-property-formal-type-and-id
              • Vl-parse-assertion-item
              • Vl-parse-sequence-declaration
              • Vl-parse-property-declaration
              • Vl-parse-sequence-port-item
              • Vl-parse-property-port-item
              • Vl-parse-1+-sequence-port-items
              • Vl-parse-1+-property-port-items
              • Vl-make-assertion-vardecls
                • Vl-plausible-start-of-assertion-item-p
                • Vl-parse-assertion-item-looks-concurrent-p
              • Vl-maybe-parse-lifetime
              • Parse-dpi-import-export
              • Parse-ports
              • Parse-timeunits
              • Seq
              • Parse-packages
              • Parse-eventctrl
            • 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
    • Parse-asserts

    Vl-make-assertion-vardecls

    Signature
    (vl-make-assertion-vardecls type vars loc) → vardecls
    Arguments
    type — Guard (vl-datatype-p type).
    vars — Guard (vl-vardeclassignlist-p vars).
    loc — Guard (vl-location-p loc).
    Returns
    vardecls — Type (vl-vardecllist-p vardecls).

    Definitions and Theorems

    Function: vl-make-assertion-vardecls

    (defun vl-make-assertion-vardecls (type vars loc)
     (declare (xargs :guard (and (vl-datatype-p type)
                                 (vl-vardeclassignlist-p vars)
                                 (vl-location-p loc))))
     (let ((__function__ 'vl-make-assertion-vardecls))
      (declare (ignorable __function__))
      (b* (((when (atom vars)) nil)
           ((vl-vardeclassign var1) (car vars)))
       (cons
        (make-vl-vardecl :name var1.id
                         :type (vl-datatype-update-udims var1.dims type)
                         :initval var1.rhs
                         :loc loc)
        (vl-make-assertion-vardecls type (cdr vars)
                                    loc)))))

    Theorem: vl-vardecllist-p-of-vl-make-assertion-vardecls

    (defthm vl-vardecllist-p-of-vl-make-assertion-vardecls
      (b* ((vardecls (vl-make-assertion-vardecls type vars loc)))
        (vl-vardecllist-p vardecls))
      :rule-classes :rewrite)