• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
          • Binder-functions
          • Fgl-syntactic-checker-binders
          • Fancy-ev
          • Backtraces
            • Interp-st-stack-backtrace-top
            • Backtrace
            • Interp-st-stack-backtrace
            • Interp-st-stack-full-backtrace
            • Function-rules-to-backtrace-spec
              • Backtrace-to-obj
            • Binder
            • Annotate
            • Binder-rules
            • Def-fgl-program
            • Bind-var
            • Abort-current-rewrite
            • Add-fgl-brewrites
            • Def-fgl-rewrite
            • Narrow-equiv
            • Trigger-constraints
            • Def-fgl-branch-merge
            • Add-fgl-rewrites
            • Syntax-bind
            • Fgl-interp-obj
            • Fgl-hide
            • Collect-cmr-rewrites-for-formula-name
            • Fgl-time
            • Fgl-prog2
            • Assume
            • Add-fgl-binder-meta
            • Add-fgl-primitive
            • Add-fgl-meta
            • Add-fgl-branch-merges
            • Syntax-interp
            • Cmr::rewritelist->lhses
            • Remove-fgl-brewrites
            • Remove-fgl-branch-merges
            • Lhses->branch-function-syms
            • Enable-execution
            • Abort-rewrite
            • Remove-fgl-rewrites
            • Lhses->leading-function-syms
            • Remove-fgl-primitive
            • Remove-fgl-binder-meta
            • If!
            • Disable-execution
            • Remove-fgl-meta
            • Fgl-time-fn
            • Disable-definition
            • Def-fgl-brewrite
          • Fgl-function-mode
          • Fgl-object
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-counterexamples
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Def-fgl-param-thm
          • Fgl-rewrite-tracing
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Removable-runes
        • Efficiency
        • Rewrite-bounds
        • Bash
        • Def-dag-measure
        • Bdd
        • Remove-hyps
        • Contextual-rewriting
        • Simp
        • Rewrite$-hyps
        • Bash-term-to-dnf
        • Use-trivial-ancestors-check
        • Minimal-runes
        • Clause-processor-tools
        • Fn-is-body
        • Without-subsumption
        • Rewrite-equiv-hint
        • Def-bounds
        • Rewrite$-context
        • Try-gl-concls
        • Hint-utils
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Backtraces

    Function-rules-to-backtrace-spec

    Get a set of FGL backtrace specifiers for all FGL rules targeting a function symbol

    Signature
    (function-rules-to-backtrace-spec fn vars interp-st state) → *
    Arguments
    fn — Guard (pseudo-fnsym-p fn).
    vars — Guard (pseudo-var-list-p vars).

    Definitions and Theorems

    Function: function-rules-to-backtrace-spec

    (defun function-rules-to-backtrace-spec (fn vars interp-st state)
      (declare (xargs :stobjs (interp-st state)))
      (declare (xargs :guard (and (pseudo-fnsym-p fn)
                                  (pseudo-var-list-p vars))))
      (let ((__function__ 'function-rules-to-backtrace-spec))
        (declare (ignorable __function__))
        (b* ((wrld (w state))
             (table (interp-st->rewrite-rules interp-st)
    )
             ((mv ?err rules)
              (fgl-function-rules fn table wrld))
             (formals (getpropc fn 'formals t wrld))
             ((unless (pseudo-var-list-p formals))
              (raise "Bad formals for ~x0: ~x1" fn formals)
              nil))
          (function-rules-to-backtrace-spec-aux rules formals vars))))