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(%arg8: none, %arg9: i64, %arg10: i64, %arg11: i64, %arg12: memref<16xi32>, %arg13: memref<16xi32>):
"scf.for"(%arg9, %arg10, %arg11) ({
^bb0(%arg14: i64):
%3 = "arith.muli"(%arg14, %arg11) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
%4 = "arith.index_cast"(%3) : (i64) -> index
%5 = "memref.load"(%arg13, %4) : (memref<16xi32>, index) -> i32
"memref.store"(%5, %arg12, %4) : (i32, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
"dataflow.graph.return"(%arg8) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i64, i64, i64, i32, memref<256xi32>) -> (), input_segments = array<i32: 4, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "nest_1", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: i32, %arg5: memref<256xi32>):
"scf.for"(%arg1, %arg2, %arg3) ({
^bb0(%arg6: i64):
"scf.for"(%arg1, %arg6, %arg3) ({
^bb0(%arg7: i64):
%0 = "arith.index_cast"(%arg7) : (i64) -> index
%1 = "memref.load"(%arg5, %0) : (memref<256xi32>, index) -> i32
%2 = "arith.addi"(%1, %arg4) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"memref.store"(%2, %arg5, %0) : (i32, memref<256xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
"dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()