@@ -4,39 +4,50 @@ file_number 0 "test_module.x"
44
55chan test_module__input_c(bits[32], id=0, kind=streaming, ops=send_only, flow_control=ready_valid, strictness=proven_mutually_exclusive, metadata="""""")
66
7- fn __itok__test_module__trace_and_add(__token: token, __activated: bits[1], x: bits[32]) -> (token, bits[32]) {
8- trace.4: token = trace(__token, __activated, format="x = {}", data_operands=[x], id=4)
9- literal.5: bits[32] = literal(value=1, id=5)
10- after_all.7: token = after_all(trace.4, id=7)
11- add.6: bits[32] = add(x, literal.5, id=6)
12- ret tuple.8: (token, bits[32]) = tuple(after_all.7, add.6, id=8)
7+ fn __itok__test_module__trace_and_add(__token: token, __activated: bits[1], x: bits[32], y: bits[32][2]) -> (token, bits[32]) {
8+ literal.5: bits[32] = literal(value=0, id=5)
9+ literal.7: bits[32] = literal(value=1, id=7)
10+ literal.10: bits[8] = literal(value=1, id=10)
11+ array_index.6: bits[32] = array_index(y, indices=[literal.5], id=6)
12+ array_index.8: bits[32] = array_index(y, indices=[literal.7], id=8)
13+ array_index.11: bits[32] = array_index(y, indices=[literal.10], id=11)
14+ literal.13: bits[8] = literal(value=0, id=13)
15+ trace.9: token = trace(__token, __activated, format="x = {}, y = [{}, {}]", data_operands=[x, array_index.6, array_index.8], id=9)
16+ add.12: bits[32] = add(x, array_index.11, id=12)
17+ array_index.14: bits[32] = array_index(y, indices=[literal.13], id=14)
18+ after_all.16: token = after_all(trace.9, id=16)
19+ add.15: bits[32] = add(add.12, array_index.14, id=15)
20+ ret tuple.17: (token, bits[32]) = tuple(after_all.16, add.15, id=17)
1321}
1422
1523fn __itok__test_module__assert_trace_and_add(__token: token, __activated: bits[1], x: bits[32]) -> (token, bits[32]) {
16- literal.12: bits[32] = literal(value=5, id=12)
17- eq.13: bits[1] = eq(x, literal.12, id=13)
18- and.16: bits[1] = and(__activated, eq.13, id=16)
19- not.17: bits[1] = not(and.16, id=17)
20- invoke.22: (token, bits[32]) = invoke(__token, __activated, x, to_apply=__itok__test_module__trace_and_add, id=22)
21- literal.15: bits[32] = literal(value=0, id=15)
22- assert.18: token = assert(__token, not.17, message="Assertion failure via fail! @ test_module.x:8:28-8:49", label="x_is_now_5", id=18)
23- tuple_index.23: token = tuple_index(invoke.22, index=0, id=23)
24- literal.20: bits[32] = literal(value=0, id=20)
25- identity.19: bits[32] = identity(literal.15, id=19)
26- after_all.25: token = after_all(assert.18, tuple_index.23, id=25)
27- tuple_index.24: bits[32] = tuple_index(invoke.22, index=1, id=24)
28- literal.14: bits[8][10] = literal(value=[120, 95, 105, 115, 95, 110, 111, 119, 95, 53], id=14)
29- sel.21: bits[32] = sel(eq.13, cases=[literal.20, identity.19], id=21)
30- ret tuple.26: (token, bits[32]) = tuple(after_all.25, tuple_index.24, id=26)
24+ literal.21: bits[32] = literal(value=5, id=21)
25+ eq.22: bits[1] = eq(x, literal.21, id=22)
26+ literal.31: bits[32] = literal(value=4, id=31)
27+ literal.32: bits[32] = literal(value=6, id=32)
28+ and.25: bits[1] = and(__activated, eq.22, id=25)
29+ array.33: bits[32][2] = array(literal.31, literal.32, id=33)
30+ not.26: bits[1] = not(and.25, id=26)
31+ invoke.34: (token, bits[32]) = invoke(__token, __activated, x, array.33, to_apply=__itok__test_module__trace_and_add, id=34)
32+ literal.24: bits[32] = literal(value=0, id=24)
33+ assert.27: token = assert(__token, not.26, message="Assertion failure via fail! @ test_module.x:8:28-8:49", label="x_is_now_5", id=27)
34+ tuple_index.35: token = tuple_index(invoke.34, index=0, id=35)
35+ literal.29: bits[32] = literal(value=0, id=29)
36+ identity.28: bits[32] = identity(literal.24, id=28)
37+ after_all.37: token = after_all(assert.27, tuple_index.35, id=37)
38+ tuple_index.36: bits[32] = tuple_index(invoke.34, index=1, id=36)
39+ literal.23: bits[8][10] = literal(value=[120, 95, 105, 115, 95, 110, 111, 119, 95, 53], id=23)
40+ sel.30: bits[32] = sel(eq.22, cases=[literal.29, identity.28], id=30)
41+ ret tuple.38: (token, bits[32]) = tuple(after_all.37, tuple_index.36, id=38)
3142}
3243
3344top proc __test_module__main_0_next(__state: bits[32], init={0}) {
34- __token: token = literal(value=token, id=27 )
35- literal.29 : bits[1] = literal(value=1, id=29 )
36- after_all.30 : token = after_all(id=30 )
37- invoke.32 : (token, bits[32]) = invoke(__token, literal.29 , __state, to_apply=__itok__test_module__assert_trace_and_add, id=32 )
38- tok: token = send(after_all.30 , __state, channel=test_module__input_c, id=31 )
39- tuple_index.33 : token = tuple_index(invoke.32 , index=0, id=33 )
40- tuple_index.34 : bits[32] = tuple_index(invoke.32 , index=1, id=34 )
41- next (tuple_index.34 )
45+ __token: token = literal(value=token, id=39 )
46+ literal.41 : bits[1] = literal(value=1, id=41 )
47+ after_all.42 : token = after_all(id=42 )
48+ invoke.44 : (token, bits[32]) = invoke(__token, literal.41 , __state, to_apply=__itok__test_module__assert_trace_and_add, id=44 )
49+ tok: token = send(after_all.42 , __state, channel=test_module__input_c, id=43 )
50+ tuple_index.45 : token = tuple_index(invoke.44 , index=0, id=45 )
51+ tuple_index.46 : bits[32] = tuple_index(invoke.44 , index=1, id=46 )
52+ next (tuple_index.46 )
4253}
0 commit comments