notes, command-line, and program output
NOTES:
64-bit Ubuntu quad core
SBCL 1.4.0
Thu, 26 Oct 2017 16:25:13 GMT
MAKE:
cp: 'binarytrees.sbcl-2.sbcl' and './binarytrees.sbcl-2.sbcl' are the same file
SBCL built with: /opt/src/sbcl-1.4.0/bin/sbcl --userinit /dev/null --batch --eval '(load "binarytrees.sbcl-2.sbcl_compile")'
### START binarytrees.sbcl-2.sbcl_compile
(handler-bind ((sb-ext:defconstant-uneql (lambda (c) (abort c)))) (load (compile-file "binarytrees.sbcl-2.sbcl" ))) (save-lisp-and-die "sbcl.core" :purify t)
### END binarytrees.sbcl-2.sbcl_compile
; compiling file "/home/dunham/benchmarksgame/bench/binarytrees/binarytrees.sbcl-2.sbcl" (written 24 JAN 2013 01:22:33 PM):
; compiling (DECLAIM (OPTIMIZE # ...))
; compiling (DEFUN BUILD-BTREE ...)
; compiling (DEFUN CHECK-NODE ...)
; compiling (DEFUN LOOP-DEPTHS ...)
; file: /home/dunham/benchmarksgame/bench/binarytrees/binarytrees.sbcl-2.sbcl
; in: DEFUN LOOP-DEPTHS
; (+ MAX-DEPTH MIN-DEPTH (- D))
; ==>
; (+ (+ MAX-DEPTH MIN-DEPTH) (- D))
;
; note: forced to do GENERIC-+ (cost 10)
; unable to do inline fixnum arithmetic (cost 2) because:
; The first argument is a (INTEGER -9223372036854775808 9223372036854775806), not a FIXNUM.
; The second argument is a (INTEGER -4611686018427387903
; 4611686018427387904), not a FIXNUM.
; The result is a (VALUES
; (INTEGER -13835058055282163711 13835058055282163710)
; &OPTIONAL), not a (VALUES FIXNUM &REST T).
; unable to do inline (signed-byte 64) arithmetic (cost 5) because:
; The result is a (VALUES
; (INTEGER -13835058055282163711 13835058055282163710)
; &OPTIONAL), not a (VALUES (SIGNED-BYTE 64) &REST T).
; etc.
; (ASH 1 (+ MAX-DEPTH MIN-DEPTH (- D)))
;
; note: forced to do full call
; unable to do inline ASH (cost 3) because:
; The second argument is a (INTEGER -13835058055282163711
; 13835058055282163710), not a (UNSIGNED-BYTE 62).
; unable to do inline ASH (cost 3) because:
; The second argument is a (INTEGER -13835058055282163711
; 13835058055282163710), not a (UNSIGNED-BYTE 62).
; etc.
; (+ MAX-DEPTH MIN-DEPTH (- D))
; ==>
; (+ (+ MAX-DEPTH MIN-DEPTH) (- D))
;
; note: doing signed word to integer coercion (cost 20), for:
; the first argument of GENERIC-+
;
; note: doing signed word to integer coercion (cost 20), for:
; the second argument of GENERIC-+
; compiling (DEFUN MAIN ...);
; compilation unit finished
; printed 4 notes
; /home/dunham/benchmarksgame_quadcore/binarytrees/tmp/binarytrees.sbcl-2.fasl written
; compilation finished in 0:00:00.018
### START binarytrees.sbcl-2.sbcl_run
(main) (quit)
### END binarytrees.sbcl-2.sbcl_run
3.49s to complete and log all make actions
COMMAND LINE:
/opt/src/sbcl-1.4.0/bin/sbcl --noinform --core sbcl.core --userinit /dev/null --load binarytrees.sbcl-2.sbcl_run 7
UNEXPECTED OUTPUT
1,4c1,4
< stretch tree of depth 8 check: -1
< 256 trees of depth 4 check: -256
< 64 trees of depth 6 check: -64
< long lived tree of depth 7 check: -1
---
> stretch tree of depth 8 check: 511
> 128 trees of depth 4 check: 3968
> 32 trees of depth 6 check: 4064
> long lived tree of depth 7 check: 255
PROGRAM OUTPUT:
stretch tree of depth 8 check: -1
256 trees of depth 4 check: -256
64 trees of depth 6 check: -64
long lived tree of depth 7 check: -1