integer function which searches the memory directory for an entry which has a name matching the name furnished to SEARCH. The value of SEARCH upon return is a pointer to the correct MEMDIR entry. A failure returns the value zero. B.6.18 SIMDIS This is a utility subroutine whose primary function is diagnostic. It writes out the entire SIM. It is used exclusively when problems are encountered in accessing data in SIM COMMON. The SIM can then be examined by the user to determine the source of the problem. B.6.19 SIMDLT This subroutine deletes the element indicated by the input data from the SIM in the SIM COMMON area. The appropriate H- and V-cell are adjusted to eliminate the pointers to the deleted element. The E-cell for the element remains unchanged. B.6.20 SPEDUP This subroutine, written by Cunningham (1973), performs the precedence ordering algorithm of Sargent and Westerberg (1964) on an incidence matrix stored as an SIM. The SIM must be output set assigned. B.6.21 WRTDIR This entry to the subroutine WRTDSK (6.22) writes the memory directory onto the first direct access record and terminates execution with a STOP 100 statement. Should any routines using the memory system encounter problems from which they cannot recover, a call to WRTDIR provides a means of saving the contents of the memory system for possible use in correcting the problem.