This file is indexed.

/usr/share/doc/stalin/benchmarks/destruct.sc is in stalin 0.11-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File:         destruct.sc
;;; Description:  DESTRUCTIVE benchmark from Gabriel tests
;;; Author:       Bob Shaw, HPLabs/ATC
;;; Created:      8-Apr-85
;;; Modified:     10-Apr-85 14:54:12 (Bob Shaw)
;;;               23-Jul-87 (Will Clinger)
;;;               22-Jan-88 (Will Clinger)
;;;               11-Apr-94 (Qobi)
;;;               32-Mar-98 (Qobi)
;;; Language:     Scheme
;;; Status:       Public Domain
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;; append! is no longer a standard Scheme procedure, so it must be defined
;;; for implementations that don't already have it.

(define (append! x y)
 (if (null? x)
     y
     (do ((a x b) (b (cdr x) (cdr b))) ((null? b) (set-cdr! a y) x))))

;;; DESTRU -- Destructive operation benchmark

(define (destructive n m)
 (let ((l (do ((i 10 (- i 1)) (a '() (cons '() a))) ((= i 0) a))))
  (do ((i n (- i 1))) ((= i 0))
   (cond ((null? (car l))
	  (do ((l l (cdr l))) ((null? l))
	   (or (not (null? (car l))) (set-car! l (cons '() '()))) ;Qobi
	   (append! (car l)
		    (do ((j m (- j 1)) (a '() (cons '() a))) ((= j 0) a)))))
	 (else
	  (do ((l1 l (cdr l1)) (l2 (cdr l) (cdr l2))) ((null? l2))
	   (set-cdr! (do ((j (quotient (length (car l2)) 2) (- j 1))
			  (a (car l2) (cdr a)))
		       ((zero? j) a)
		      (set-car! a i))
		     (let ((n (quotient (length (car l1)) 2)))
		      (cond ((= n 0)
			     (set-car! l1 '())
			     (car l1))
			    (else
			     (do ((j n (- j 1)) (a (car l1) (cdr a)))
			       ((= j 1)
				(let ((x (cdr a)))
				 (set-cdr! a '())
				 x))
			      (set-car! a i))))))))))))

(do ((i 0 (+ i 1))) ((= i 1000)) (destructive 600 50))