Back to PBT run

input.generic.mlir

"builtin.module"() ({
  "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_0", sym_visibility = "private"}> ({
  ^bb0(%arg16: none, %arg17: i64, %arg18: i64, %arg19: i64, %arg20: i64, %arg21: i32, %arg22: memref<16xi32>):
    "scf.for"(%arg17, %arg18, %arg19) ({
    ^bb0(%arg23: i64):
      %6 = "arith.addi"(%arg23, %arg17) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
      %7 = "arith.index_cast"(%6) : (i64) -> index
      %8 = "arith.cmpi"(%arg23, %arg20) <{predicate = 2 : i64}> : (i64, i64) -> i1
      "scf.if"(%8) ({
        "memref.store"(%arg21, %arg22, %7) : (i32, memref<16xi32>, index) -> ()
        "scf.yield"() : () -> ()
      }, {
      }) : (i1) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    "dataflow.graph.return"(%arg16) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (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_1", sym_visibility = "private"}> ({
  ^bb0(%arg8: none, %arg9: i64, %arg10: i64, %arg11: i64, %arg12: i64, %arg13: i32, %arg14: memref<16xi32>):
    "scf.for"(%arg9, %arg10, %arg11) ({
    ^bb0(%arg15: i64):
      %3 = "arith.addi"(%arg15, %arg9) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
      %4 = "arith.index_cast"(%3) : (i64) -> index
      %5 = "arith.cmpi"(%arg15, %arg12) <{predicate = 2 : i64}> : (i64, i64) -> i1
      "scf.if"(%5) ({
        "memref.store"(%arg13, %arg14, %4) : (i32, memref<16xi32>, index) -> ()
        "scf.yield"() : () -> ()
      }, {
      }) : (i1) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    "dataflow.graph.return"(%arg8) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (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.muli"(%arg7, %arg3) <{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) -> ()
  }) : () -> ()
}) : () -> ()