• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
        • Fgl-solving
        • Fgl-handling-if-then-elses
        • Fgl-getting-bits-from-objects
        • Fgl-primitive-and-meta-rules
        • Fgl-counterexamples
          • Def-ctrex-rule
          • Fgl-counterexample-implementation-details
            • Cgraph
              • Cgraph-p
              • Ctrex-rule
                • Ctrex-rule-fix
                • Make-ctrex-rule
                  • Ctrex-rule-p
                  • Ctrex-rule-equiv
                  • Ctrex-rule->dep-success-vars
                  • Change-ctrex-rule
                  • Ctrex-rule->unify-subst
                  • Ctrex-rule->ruletype
                  • Ctrex-rule->priority
                  • Ctrex-rule->value
                  • Ctrex-rule->target
                  • Ctrex-rule->success
                  • Ctrex-rule->match
                  • Ctrex-rule->deps
                  • Ctrex-rule->order
                  • Ctrex-rule->name
                • Cgraph-fix
                • Cgraph-equiv
              • Cgraph-derive-assignments-for-vars
              • Cgraph-derive-assignments-obj
              • Cgraph-derive-assignments-bindings
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • 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
    • Ctrex-rule

    Make-ctrex-rule

    Basic constructor macro for ctrex-rule structures.

    Syntax
    (make-ctrex-rule [:name <name>] 
                     [:match <match>] 
                     [:unify-subst <unify-subst>] 
                     [:target <target>] 
                     [:deps <deps>] 
                     [:dep-success-vars <dep-success-vars>] 
                     [:success <success>] 
                     [:priority <priority>] 
                     [:value <value>] 
                     [:order <order>] 
                     [:ruletype <ruletype>]) 
    

    This is the usual way to construct ctrex-rule structures. It simply conses together a structure with the specified fields.

    This macro generates a new ctrex-rule structure from scratch. See also change-ctrex-rule, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-ctrex-rule

    (defmacro make-ctrex-rule (&rest args)
      (std::make-aggregate 'ctrex-rule
                           args
                           '((:name)
                             (:match)
                             (:unify-subst)
                             (:target)
                             (:deps)
                             (:dep-success-vars)
                             (:success)
                             (:priority)
                             (:value)
                             (:order)
                             (:ruletype))
                           'make-ctrex-rule
                           nil))

    Function: ctrex-rule

    (defun ctrex-rule (name match
                            unify-subst target deps dep-success-vars
                            success priority value order ruletype)
     (declare (xargs :guard (and (symbolp name)
                                 (pseudo-termp match)
                                 (fgl-object-bindings-p unify-subst)
                                 (pseudo-termp target)
                                 (pseudo-term-subst-p deps)
                                 (pseudo-term-subst-p dep-success-vars)
                                 (pseudo-termp success)
                                 (pseudo-termp priority)
                                 (pseudo-termp value)
                                 (natp order)
                                 (ctrex-ruletype-p ruletype))))
     (declare (xargs :guard t))
     (let ((__function__ 'ctrex-rule))
       (declare (ignorable __function__))
       (b*
         ((name (mbe :logic (acl2::symbol-fix name)
                     :exec name))
          (match (mbe :logic (pseudo-term-fix match)
                      :exec match))
          (unify-subst (mbe :logic (fgl-object-bindings-fix unify-subst)
                            :exec unify-subst))
          (target (mbe :logic (pseudo-term-fix target)
                       :exec target))
          (deps (mbe :logic (pseudo-term-subst-fix deps)
                     :exec deps))
          (dep-success-vars
               (mbe :logic (pseudo-term-subst-fix dep-success-vars)
                    :exec dep-success-vars))
          (success (mbe :logic (pseudo-term-fix success)
                        :exec success))
          (priority (mbe :logic (pseudo-term-fix priority)
                         :exec priority))
          (value (mbe :logic (pseudo-term-fix value)
                      :exec value))
          (order (mbe :logic (nfix order) :exec order))
          (ruletype (mbe :logic (ctrex-ruletype-fix ruletype)
                         :exec ruletype)))
         (list (cons 'name name)
               (cons 'match match)
               (cons 'unify-subst unify-subst)
               (cons 'target target)
               (cons 'deps deps)
               (cons 'dep-success-vars
                     dep-success-vars)
               (cons 'success success)
               (cons 'priority priority)
               (cons 'value value)
               (cons 'order order)
               (cons 'ruletype ruletype)))))