File: metaPrintAttr.expected

package info (click to toggle)
maude 2.6-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,776 kB
  • ctags: 8,613
  • sloc: cpp: 87,637; sh: 3,468; ansic: 3,011; yacc: 1,414; makefile: 1,252; lex: 563
file content (64 lines) | stat: -rw-r--r-- 1,912 bytes parent folder | download | duplicates (3)
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
Maude> ==========================================
reduce in COND : f(a, b) .
rewrites: 1
result Foo: g(a, h(b))
==========================================
reduce in META-LEVEL : upModule('COND, false) .
rewrites: 1
result FModule: fmod 'COND is
  including 'BOOL .
  sorts 'Foo .
  none
  op 'a : nil -> 'Foo [none] .
  op 'b : nil -> 'Foo [none] .
  op 'c : nil -> 'Foo [none] .
  op 'd : nil -> 'Foo [none] .
  op 'e : nil -> 'Foo [none] .
  op 'f : 'Foo 'Foo -> 'Foo [none] .
  op 'g : 'Foo 'Foo -> 'Foo [none] .
  op 'h : 'Foo -> 'Foo [none] .
  none
  ceq 'f['X:Foo,'Y:Foo] = 'g['X:Foo,'Z:Foo] if 'Z:Foo := 'h['Y:Foo] [print(
    '"X = " 'X:Foo '", Z = " 'Z:Foo)] .
endfm
==========================================
reduce in META-LEVEL : metaReduce(fmod 'COND is
  including 'BOOL .
  sorts 'Foo .
  none
  ((((((op 'g : 'Foo 'Foo -> 'Foo [none] .
  op 'h : 'Foo -> 'Foo [none] .)
  op 'f : 'Foo 'Foo -> 'Foo [none] .)
  op 'e : nil -> 'Foo [none] .)
  op 'd : nil -> 'Foo [none] .)
  op 'c : nil -> 'Foo [none] .)
  op 'b : nil -> 'Foo [none] .)
  op 'a : nil -> 'Foo [none] .
  none
  ceq 'f['X:Foo,'Y:Foo] = 'g['X:Foo,'Z:Foo] if 'Z:Foo := 'h['Y:Foo] [print(
    '"X = " 'X:Foo '", Z = " 'Z:Foo)] .
endfm, 'f['a.Foo,'b.Foo]) .
X = a, Z = h(b)
rewrites: 2
result ResultPair: {'g['a.Foo,'h['b.Foo]],'Foo}
==========================================
reduce in META-LEVEL : metaReduce(fmod 'COND is
  including 'BOOL .
  sorts 'Foo .
  none
  ((((((op 'g : 'Foo 'Foo -> 'Foo [none] .
  op 'h : 'Foo -> 'Foo [none] .)
  op 'f : 'Foo 'Foo -> 'Foo [none] .)
  op 'e : nil -> 'Foo [none] .)
  op 'd : nil -> 'Foo [none] .)
  op 'c : nil -> 'Foo [none] .)
  op 'b : nil -> 'Foo [none] .)
  op 'a : nil -> 'Foo [none] .
  none
  ceq 'f['X:Foo,'Y:Foo] = 'g['X:Foo,'Z:Foo] if 'Z:Foo := 'h['Y:Foo] [print(
    nil)] .
endfm, 'f['a.Foo,'b.Foo]) .

rewrites: 2
result ResultPair: {'g['a.Foo,'h['b.Foo]],'Foo}
Maude> Bye.