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
|
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
nil
sorts 'Foo .
none
op 'a : nil -> 'Foo [none] .
none
none
endfm, 'a.Foo) .
rewrites: 1
result ResultPair: {'a.Foo, 'Foo}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
nil
sorts 'Foo .
none
(op 'b : nil -> 'Foo [none] .
op 'f : 'Foo -> 'Foo [strat(0)] .)
op 'a : nil -> 'Foo [none] .
none
eq 'a.Foo = 'b.Foo [none] .
endfm, 'f['a.Foo]) .
rewrites: 1
result ResultPair: {'f['a.Foo], 'Foo}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
nil
sorts 'Foo .
none
(op 'b : nil -> 'Foo [none] .
op 'f : 'Foo -> 'Foo [strat(1 0)] .)
op 'a : nil -> 'Foo [none] .
none
eq 'a.Foo = 'b.Foo [none] .
endfm, 'f['a.Foo]) .
rewrites: 2
result ResultPair: {'f['b.Foo], 'Foo}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
protecting 'STRING .
sorts none .
none
none
none
none
endfm, '"a".String) .
rewrites: 1
result ResultPair: {'"a".Char, 'Char}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
protecting 'STRING .
sorts none .
none
none
none
none
endfm, '"this is a string".String) .
rewrites: 1
result ResultPair: {'"this is a string".String, 'String}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
protecting 'STRING .
sorts none .
none
none
none
none
endfm, '"this is\na string".String) .
rewrites: 1
result ResultPair: {'"this is\na string".String, 'String}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
protecting 'STRING .
sorts none .
none
none
none
none
endfm, '"\n".String) .
rewrites: 1
result ResultPair: {'"\n".Char, 'Char}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
protecting 'FLOAT .
sorts none .
none
none
none
none
endfm, 'pi.Float) .
rewrites: 2
result ResultPair: {'3.1415926535897931.FiniteFloat, 'FiniteFloat}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'FOO is
protecting 'INT .
sorts 'Foo .
none
op 'a : nil -> 'Foo [none] .
none
none
endfm, '_+_['s_['0.Int], 's_^12['0.Int]]) .
rewrites: 2
result ResultPair: {'s_^13['0.Zero], 'NzNat}
Bye.
|