Filtering...

markup-hooks

books/acl2s/distribution/acl2s-hooks/markup-hooks
other
(in-package "ACL2S-HOOKS")
other
(include-book "canonical-print")
other
(include-book "hacking/hacker" :dir :system)
other
(include-book "hacking/defcode" :dir :system :ttags ((defcode)))
other
(include-book "hacking/redefun" :dir :system)
other
(include-book "hacking/rewrite-code" :dir :system)
other
(program)
other
(set-state-ok t)
acl2s-markuppfunction
(defun acl2s-markupp
  (state)
  (and (boundp-global 'acl2s-markupp
      state)
    (get-global 'acl2s-markupp
      state)))
acl2s-markup-beginfunction
(defun acl2s-markup-begin
  (state)
  (assign acl2s-markupp t))
other
(push-untouchable acl2s-markupp
  nil)
print-checkpointfunction
(defun print-checkpoint
  (fmt-string state)
  (pfmx-canonical "$ChEcKpOiNt{$~@0$ChEcKpOiNt}$~%"
    fmt-string))
other
(defttag :acl2s-markup)
other
(progn+touchable :all (redefun+rewrite waterfall-msg1
    (:carpat %body%
      :vars %body%
      :repl (pprogn (if (and (acl2s-markupp state)
            (f-boundp-global 'checkpoint-processors
              state)
            (member-eq processor
              (@ checkpoint-processors)))
          (print-checkpoint (tilde-@-clause-id-phrase cl-id)
            state)
          state)
        %body%)))
  (redefun+rewrite waterfall
    (:carpat %body%
      :vars %body%
      :repl (pprogn (if (and (acl2s-markupp state)
            (f-boundp-global 'checkpoint-processors
              state)
            (not (member-eq 'proof-tree
                (@ inhibit-output-lst))))
          (cond ((and (null pool-lst) (eql forcing-round 0)) state)
            (pool-lst (if (member-eq :induct (@ checkpoint-processors))
                (print-checkpoint (tilde-@-pool-name-phrase forcing-round pool-lst)
                  state)
                state))
            (t (if (member-eq :forcing-round (@ checkpoint-processors))
                (print-checkpoint (tilde-@-pool-name-phrase forcing-round pool-lst)
                  state)
                state)))
          state)
        %body%))))
other
(defttag nil)