• 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
        • 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
    • Programming
    • Hons-and-memoization
    • Events

    Unmemoize

    Turn off memoization for the specified function

    Example:
    (unmemoize 'foo) ; turn off memoization of foo
    
    General Form:
    (unmemoize fn)

    where fn evaluates to a function symbol that is currently memoized; see memoize. An exception is that as with memoize, fn may evaluate to the name of a macro that is associated with such a function symbol; see macro-aliases-table.

    Calls of this macro generate events of the form (table memoize-table fn nil). When successful, the returned value is of the form (mv nil function-symbol state).

    To remove the effects of all memoize events, evaluate: (clear-memo-table). To save and restore memoization, see save-and-clear-memoization-settings and see restore-memoization-settings. These are both legal event forms. Note: These events do not affect memoization from memoize events that either are derived from calls of memoize-partial or have a non-nil value of memoize argument :invoke