• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
          • Defstv
          • Stv-compile
          • Symbolic-test-vector-format
          • Stv-implementation-details
          • Compiled-stv-p
          • Stv-run-for-all-dontcares
          • Stv-run
            • Stv-simvar-inputs-to-bits
            • Stv-assemble-output-alist
            • Stv-print-alist
            • Stv-process
            • Stv-run-check-dontcares
            • Symbolic-test-vector-composition
            • Stv-expand
            • Stv-easy-bindings
            • Stv-debug
            • Stv-run-squash-dontcares
            • Stvdata-p
            • Stv-doc
            • Stv2c
            • Stv-widen
            • Stv-out->width
            • Stv-in->width
            • Stv-number-of-phases
            • Stv->outs
            • Stv->ins
            • Stv-suffix-signals
            • Stv->vars
          • Esim-primitives
          • E-conversion
          • Esim-steps
          • Patterns
          • Mod-internal-paths
          • Defmodules
          • Esim-simplify-update-fns
          • Esim-tutorial
          • Esim-vl
        • Vl2014
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stv-run

    Stv-print-alist

    Dumb printing utility. X is expected to be an alist binding symbols to values. We print them out hexified and indented in a nice way.

    Signature
    (stv-print-alist x) → *

    Definitions and Theorems

    Function: stv-print-alist

    (defun stv-print-alist (x)
     (declare (xargs :guard t))
     (let ((__function__ 'stv-print-alist))
       (declare (ignorable __function__))
       (b*
        (((when (atom x)) nil)
         ((unless (consp (car x)))
          (raise
               "Malformed alist: Entry ~x0 is not a (key . val) pair.~%"
               (car x)))
         ((cons key val) (car x))
         ((unless (symbolp key))
          (raise "Malformed alist: name is not a symbolp.~%"
                 (car x)))
         (- (cw "  ~s0:~t1~s2~%"
                key 20 (str::hexify val))))
        (stv-print-alist (cdr x)))))