• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • 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
        • Fgl-interpreter-overview
        • Fgl-correctness-of-binding-free-variables
        • Fgl-debugging
        • Fgl-testbenches
        • Def-fgl-boolean-constraint
        • Fgl-stack
          • Scratchobj
            • Scratchobj-fix
            • Scratchobj-case
            • Scratchobj-equiv
            • Scratchobj-p
            • Scratchobj-formals
              • Scratchobj-formals->val
              • Make-scratchobj-formals
              • Change-scratchobj-formals
              • Scratchobj-fnsym
              • Scratchobj-fgl-objlist
              • Scratchobj-fgl-obj
              • Scratchobj-cinstlist
              • Scratchobj-cinst
              • Scratchobj-bfrlist
              • Scratchobj-kind
              • Scratchobj-bfr
            • Minor-frame
            • Major-frame
            • Major-stack
            • Scratchlist
            • Minor-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
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Scratchobj-formals

    Change-scratchobj-formals

    Modifying constructor for scratchobj-formals structures.

    Syntax
    (change-scratchobj-formals x 
                               [:val <val>]) 
    

    This is an often useful alternative to make-scratchobj-formals.

    We construct a new scratchobj-formals structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by defprod.

    Macro: change-scratchobj-formals

    (defmacro change-scratchobj-formals (x &rest args)
      (std::change-aggregate 'scratchobj-formals
                             x
                             args '((:val . scratchobj-formals->val))
                             'change-scratchobj-formals
                             'remake-scratchobj-formals))