• 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
            • 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
              • Vl-build-netdecls
              • Vl-parse-net-declaration-finish
              • Vl-parse-net-declaration
              • Vl-build-netdecls-aux
              • Vl-parse-list-of-net-identifiers
              • Vl-parse-netdecltype
              • Vl-netdecls-error
              • Vl-parse-optional-nettype
              • Vl-atomify-assignpairs
                • Vl-rangelist-list
                • Vl-netdeclassigns-check-array-assigns
                • Vl-netdeclassigns-characterize
              • Parse-asserts
              • 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-netdecls

    Vl-atomify-assignpairs

    Signature
    (vl-atomify-assignpairs x) → *
    Arguments
    x — Guard (and (alistp x) (vl-idtoken-list-p (strip-cars x)) (vl-exprlist-p (strip-cdrs x))) .

    Definitions and Theorems

    Function: vl-atomify-assignpairs

    (defun vl-atomify-assignpairs (x)
      (declare (xargs :guard (and (alistp x)
                                  (vl-idtoken-list-p (strip-cars x))
                                  (vl-exprlist-p (strip-cdrs x)))))
      (let ((__function__ 'vl-atomify-assignpairs))
        (declare (ignorable __function__))
        (if (atom x)
            nil
          (cons (cons (vl-idexpr (vl-idtoken->name (caar x)))
                      (cdar x))
                (vl-atomify-assignpairs (cdr x))))))

    Theorem: alistp-of-vl-atomify-assignpairs

    (defthm alistp-of-vl-atomify-assignpairs
      (alistp (vl-atomify-assignpairs x)))

    Theorem: vl-exprlist-p-of-strip-cars-of-vl-atomify-assignpairs

    (defthm vl-exprlist-p-of-strip-cars-of-vl-atomify-assignpairs
      (implies (force (vl-idtoken-list-p (strip-cars x)))
               (vl-exprlist-p (strip-cars (vl-atomify-assignpairs x)))))

    Theorem: vl-exprlist-p-of-strip-cdrs-of-vl-atomify-assignpairs

    (defthm vl-exprlist-p-of-strip-cdrs-of-vl-atomify-assignpairs
      (implies (force (vl-exprlist-p (strip-cdrs x)))
               (vl-exprlist-p (strip-cdrs (vl-atomify-assignpairs x)))))