How to convert calls of wormhole for Version 4.0
Here we describe how to convert an ``old-style'' call of wormhole — that is, a call suitable for ACL2 versions preceding 4.0
— in which the
(wormhole t 'name input form ...)
to a new-style call, the following steps must be carried out. Note that the wormhole name must always be quoted now.
First, eliminate the first argument,
'(lambda (whs) (set-wormhole-entry-code whs :ENTER))
Setting the entry code to
'(lambda (whs) whs)
Second, change the
However, remember that the old data stored in
(assign wormhole-status (set-wormhole-data (@ wormhole-status) ...))
In summary, an old-style call like
(wormhole t 'name input '(...1 (@ wormhole-output) ...2 ...3 (assign wormhole-output ...4) ...5) ...6)
can become
(wormhole 'name '(lambda (whs) (set-wormhole-entry-code whs :ENTER)) input '(...1 (wormhole-data (@ wormhole-status)) ...2 ...3 (assign wormhole-status (set-wormhole-data (@ wormhole-status) ...4) ...5) ...6)
In any case, and especially if your