• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • 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-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
            • Stv2c-opts-p
            • Stv2c-c-symbol-names
            • Stv2c-outs-structdef
              • Stv2c-outs-structfields
                • Stv2c-outs-structname
              • Stv2c-ins-structdef
              • Stv2c-c-symbol-name
              • Stv2c-header
              • Stv2c-main
            • 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
    • Stv2c-outs-structdef

    Stv2c-outs-structfields

    Signature
    (stv2c-outs-structfields outs stv acc) → new-acc
    Arguments
    outs — Initially the stv->outs from the stv.
    stv — Guard (processed-stv-p stv).
    Returns
    new-acc — Type (character-listp new-acc), given (character-listp acc).

    Definitions and Theorems

    Function: stv2c-outs-structfields

    (defun stv2c-outs-structfields (outs stv acc)
      (declare (xargs :guard (processed-stv-p stv)))
      (let ((__function__ 'stv2c-outs-structfields))
        (declare (ignorable __function__))
        (b* (((when (atom outs)) acc)
             ((unless (symbolp (car outs)))
              (raise "STV output not a symbol? ~x0"
                     (car outs))
              acc)
             (c-name (stv2c-c-symbol-name (car outs)))
             (width (stv-out->width (car outs) stv))
             (acc (str::revappend-chars "    fourval<" acc))
             (acc (str::revappend-chars (str::natstr width)
                                        acc))
             (acc (str::revappend-chars "> " acc))
             (acc (str::revappend-chars c-name acc))
             (acc (str::revappend-chars ";" acc))
             (acc (cons #\Newline acc)))
          (stv2c-outs-structfields (cdr outs)
                                   stv acc))))

    Theorem: character-listp-of-stv2c-outs-structfields

    (defthm character-listp-of-stv2c-outs-structfields
      (implies (character-listp acc)
               (b* ((new-acc (stv2c-outs-structfields outs stv acc)))
                 (character-listp new-acc)))
      :rule-classes :rewrite)