• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Mutual-recursion
        • Memoize
          • Memoize-partial
          • Protect-memoize-statistics
          • Profile-all
          • Profile-ACL2
          • Memoized-prover-fns
          • Unmemoize
          • Verify-guard-implication
          • Memsum
          • Set-bad-lisp-consp-memoize
          • Memoize-summary
          • Save-and-clear-memoization-settings
            • Never-memoize
            • Clear-memoize-tables
            • Clear-memoize-statistics
            • Clear-memoize-table
            • Restore-memoization-settings
          • Mbe
          • Io
          • Defpkg
          • Apply$
          • Loop$
          • Programming-with-state
          • Arrays
          • Characters
          • Time$
          • Defmacro
          • Loop$-primer
          • Fast-alists
          • Defconst
          • Evaluation
          • Guard
          • Equality-variants
          • Compilation
          • Hons
          • ACL2-built-ins
          • Developers-guide
          • System-attachments
          • Advanced-features
          • Set-check-invariant-risk
          • Numbers
          • Efficiency
          • Irrelevant-formals
          • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
          • Redefining-programs
          • Lists
          • Invariant-risk
          • Errors
          • Defabbrev
          • Conses
          • Alists
          • Set-register-invariant-risk
          • Strings
          • Program-wrapper
          • Get-internal-time
          • Basics
          • Packages
          • Oracle-eval
          • Defmacro-untouchable
          • <<
          • Primitive
          • Revert-world
          • Unmemoize
          • Set-duplicate-keys-action
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Fake-oracle-eval
          • Defopen
          • Sleep
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Memoize

    Save-and-clear-memoization-settings

    Save and remove the current memoization settings

    For background on memoization, see memoize.

    General Form:
    (save-and-clear-memoization-settings)

    Calls of this macro achieve two changes. The first copies the current memoization settings into an ACL2 table, and the second unmemoizes all functions that were memoized by calls of memoize. But note that this skips memoization settings that are either derived from calls of memoize-partial or have a non-nil value of memoize argument :invoke

    Also see restore-memoization-settings.