• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • 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-expand-name
            • Stv-hid-parse
            • Stv-wirename-parse
            • Stv-hid-to-paths
            • Stv-maybe-match-select
            • Stv-hid-split
            • Stv-expand-hids-in-lines
            • Stv-expand-names-in-lines
            • Stv-expand-hid
            • Stv-check-noncanonical-paths
            • 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
        • Vwsim
        • Fgl
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Stv-expand

    Stv-check-noncanonical-paths

    Checks that the listed paths all exist in the module

    Signature
    (stv-check-noncanonical-paths paths mod) → *

    Definitions and Theorems

    Function: stv-check-noncanonical-paths

    (defun stv-check-noncanonical-paths (paths mod)
      (declare (xargs :guard t))
      (let ((__function__ 'stv-check-noncanonical-paths))
        (declare (ignorable __function__))
        (b* (((when (atom paths)) nil)
             (path (car paths))
             (submod (follow-esim-path path mod))
             (wirename (if (atom path)
                           path
                         (cdr (last path)))))
          (if (and wirename (symbolp wirename))
              (or (member-of-pat-flatten wirename (gpl :i submod))
                  (find-in-occs-field :o wirename (gpl :occs submod))
                  (raise "Path ~x0 does not exist" path))
            (raise "~x0 is not a valid wirename" wirename))
          (stv-check-noncanonical-paths (cdr paths)
                                        mod))))