/usr/share/axiom-20140801/input/cachedf.input is in axiom-test 20140801-6.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | )set break resume
)sys rm -f cachedf.output
)spool cachedf.output
)set message test on
)set message auto off
)clear all
)sys cp $AXIOM/../../src/input/cachedf.input.pamphlet .
)lisp (tangle "cachedf.input.pamphlet" "cachedf.spad" "cachedf.spad")
)set message time on
--S 1 of 8
)co cachedf
--R
--R Compiling AXIOM source code from file
--I /research/test/int/input/cachedf.spad using old system compiler.
--R CACHEDF abbreviates domain CachedFunction
--R processing macro definition Exports ==> -- the constructor category
--R processing macro definition Implementation ==> -- the constructor capsule
--R------------------------------------------------------------------------
--R initializing nrlib CACHEDF for CachedFunction
--R compiling into nrlib CACHEDF
--R compiling exported function : $ -> A -> B
--R CACHEDF;function;$M;1 is replaced by QCDR
--ITime: 0.01 SEC.
--R
--R compiling exported cachedFunction : A -> B -> $
--ITime: 0.01 SEC.
--R
--R compiling exported apply : ($,A) -> B
--ITime: 0 SEC.
--R
--R compiling exported recursiveDefine : ($,A -> B) -> $
--ITime: 0 SEC.
--R
--I(time taken in buildFunctor: 0 . NIL)
--R
--R;;; *** |CachedFunction| REDEFINED
--R
--R;;; *** |CachedFunction| REDEFINED
--ITime: 0 SEC.
--R
--R
--R Cumulative Statistics for Constructor CachedFunction
--I Time: 0.02 seconds
--R
--R finalizing nrlib CACHEDF
--R Processing CachedFunction for Browser database:
--R--->-->CachedFunction((function ((Mapping B A) %))): Not documented!!!!
--R--->-->CachedFunction((cachedFunction (% (Mapping B A)))): Not documented!!!!
--R--->-->CachedFunction((apply (B % A))): Not documented!!!!
--R--->-->CachedFunction((recursiveDefine (% % (Mapping B A)))): Not documented!!!!
--R--------constructor---------
--R------------------------------------------------------------------------
--I CachedFunction is now explicitly exposed in frame frame0
--R CachedFunction will be automatically loaded when needed from
--I /research/test/int/input/CACHEDF.nrlib/code
--R
--E 1
--S 2 of 8
I := Integer
--R
--R
--R (1) Integer
--R Type: Domain
--I Time: 0 sec
--E 2
--S 3 of 8
f(n:I):I == 1
--R
--R Function declaration f : Integer -> Integer has been added to
--R workspace.
--R Type: Void
--I Time: 0 sec
--E 3
--S 4 of 8
fib: CachedFunction(I,I) := cachedFunction(f)
--R
--R Compiling function f with type Integer -> Integer
--R
--R LISP output:
--I(#<hash-table 092ec78c> *1;f;1;frame0)
--R Type: CachedFunction(Integer,Integer)
--I Time: 0 sec
--E 4
--S 5 of 8
recursiveDefine(fib,(n:I):I +-> if n<2 then 1 else fib(n-1)+fib(n-2))
--R
--R
--R LISP output:
--I(#<hash-table 092ec78c> (LAMBDA-CLOSURE ...
--R Type: CachedFunction(Integer,Integer)
--I Time: 0.02 (IN) + 0.01 (GC) = 0.03 sec
--E 5
--S 6 of 8
fib 40
--R
--R
--R (5) 165580141
--R Type: PositiveInteger
--I Time: 0.01 (IN) = 0.01 sec
--E 6
--S 7 of 8
g(n:I):I == if n<2 then 1 else g(n-1)+g(n-2)
--R
--R Function declaration g : Integer -> Integer has been added to
--R workspace.
--R Type: Void
--I Time: 0 sec
--E 7
--S 8 of 8
g 40
--R
--R Compiling function g with type Integer -> Integer
--R
--R (7) 165580141
--R Type: PositiveInteger
--I Time: 36.42 (EV) + 0.02 (GC) = 36.44 sec
--E 8
)spool
)lisp (bye)
|