update test case outputs
[pet.git] / tests / matmul.scop
bloba3bf46465a8e313e098e1ab1b6eb4f18e5ce3f86
1 start: 95
2 end: 277
3 context: '[N, K, M] -> {  : K >= 0 and N >= 0 and N <= 2147483647 and K <= 2147483647
4   and M <= 2147483647 and M >= -2147483648 }'
5 arrays:
6 - context: '[K] -> {  : K >= 0 }'
7   extent: '[N, K, M] -> { A[i0, i1] : i1 >= 0 and i0 >= 0 and i1 <= -1 + K }'
8   element_type: float
9   element_size: 4
10 - context: '[N] -> {  : N >= 0 }'
11   extent: '[N, K, M] -> { B[i0, i1] : i1 >= 0 and i0 >= 0 and i1 <= -1 + N }'
12   element_type: float
13   element_size: 4
14 - context: '[N] -> {  : N >= 0 }'
15   extent: '[N, K, M] -> { C[i0, i1] : i1 >= 0 and i0 >= 0 and i1 <= -1 + N }'
16   element_type: float
17   element_size: 4
18   live_out: 1
19 statements:
20 - line: 9
21   domain: '[N, K, M] -> { S_0[i, j] : j <= -1 + N and j >= 0 and i <= -1 + M and i
22     >= 0 }'
23   schedule: '[N, M] -> { S_0[i, j] -> [0, i, j, 0] }'
24   body:
25     type: binary
26     operation: =
27     arguments:
28     - type: access
29       relation: '[N, K, M] -> { S_0[i, j] -> C[i, j] }'
30       read: 0
31       write: 1
32     - type: access
33       relation: '[N, K, M] -> { S_0[i, j] -> [0] }'
34       read: 1
35       write: 0
36 - line: 11
37   domain: '[N, K, M] -> { S_1[i, j, k] : k <= -1 + K and k >= 0 and j <= -1 + N and
38     j >= 0 and i <= -1 + M and i >= 0 }'
39   schedule: '[K, N, M] -> { S_1[i, j, k] -> [0, i, j, 1, k] }'
40   body:
41     type: binary
42     operation: +=
43     arguments:
44     - type: access
45       relation: '[N, K, M] -> { S_1[i, j, k] -> C[i, j] }'
46       read: 1
47       write: 1
48     - type: binary
49       operation: '*'
50       arguments:
51       - type: access
52         relation: '[N, K, M] -> { S_1[i, j, k] -> A[i, k] }'
53         read: 1
54         write: 0
55       - type: access
56         relation: '[N, K, M] -> { S_1[i, j, k] -> B[k, j] }'
57         read: 1
58         write: 0