Back to PBT run
input.generic.mlir
"builtin.module"() ({
"dataflow.graph"() <{function_type = (i64, i64, i64, memref<16xi32>, memref<16xi32>) -> (), input_segments = array<i32: 3, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "pair_0", sym_visibility = "private"}> ({
^bb0(%arg16: none, %arg17: i64, %arg18: i64, %arg19: i64, %arg20: memref<16xi32>, %arg21: memref<16xi32>):
"scf.for"(%arg17, %arg18, %arg19) ({
^bb0(%arg22: i64):
%8 = "arith.muli"(%arg22, %arg19) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
%9 = "arith.index_cast"(%8) : (i64) -> index
%10 = "memref.load"(%arg21, %9) : (memref<16xi32>, index) -> i32
"memref.store"(%10, %arg20, %9) : (i32, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
"dataflow.graph.return"(%arg16) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i64, i64, i64, i32, memref<128xi32>) -> i32, input_segments = array<i32: 4, 0, 1>, result_segments = array<i32: 1, 0, 0>, sym_name = "acc_1", sym_visibility = "private"}> ({
^bb0(%arg8: none, %arg9: i64, %arg10: i64, %arg11: i64, %arg12: i32, %arg13: memref<128xi32>):
%3 = "scf.for"(%arg9, %arg10, %arg11, %arg12) ({
^bb0(%arg14: i64, %arg15: i32):
%4 = "arith.addi"(%arg14, %arg9) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
%5 = "arith.index_cast"(%4) : (i64) -> index
%6 = "memref.load"(%arg13, %5) : (memref<128xi32>, index) -> i32
%7 = "arith.addi"(%arg15, %6) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"memref.store"(%7, %arg13, %5) : (i32, memref<128xi32>, index) -> ()
"scf.yield"(%7) : (i32) -> ()
}) : (i64, i64, i64, i32) -> i32
"dataflow.graph.return"(%3, %arg8) <{operandSegmentSizes = array<i32: 1, 0, 0, 1>}> : (i32, none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i64, i64, i64, i64, i32, memref<16xi32>) -> (), input_segments = array<i32: 5, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "guard_2", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: i64, %arg5: i32, %arg6: memref<16xi32>):
"scf.for"(%arg1, %arg2, %arg3) ({
^bb0(%arg7: i64):
%0 = "arith.addi"(%arg7, %arg1) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
%1 = "arith.index_cast"(%0) : (i64) -> index
%2 = "arith.cmpi"(%arg7, %arg4) <{predicate = 2 : i64}> : (i64, i64) -> i1
"scf.if"(%2) ({
"memref.store"(%arg5, %arg6, %1) : (i32, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}, {
}) : (i1) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
"dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()