; LLVM IR from libxsmm/libxsmm :: src (libxsmm_xcopy)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.libxsmm_xcopykernel = type { ptr }

@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [46 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_otrans_task_internal = external hidden unnamed_addr constant [185 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_otrans_task_internal(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i64 %9, i32 noundef %10, i32 noundef %11) #2 {
  %13 = alloca %union.libxsmm_xcopykernel, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = getelementptr inbounds %union.libxsmm_xcopykernel, ptr %13, i32 0, i32 0
  %38 = inttoptr i64 %9 to ptr
  store ptr %38, ptr %37, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store i32 %2, ptr %16, align 4, !tbaa !9
  store i32 %3, ptr %17, align 4, !tbaa !9
  store i32 %4, ptr %18, align 4, !tbaa !9
  store i32 %5, ptr %19, align 4, !tbaa !9
  store i32 %6, ptr %20, align 4, !tbaa !9
  store i32 %7, ptr %21, align 4, !tbaa !9
  store i32 %8, ptr %22, align 4, !tbaa !9
  store i32 %10, ptr %23, align 4, !tbaa !9
  store i32 %11, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %39 = load i32, ptr %21, align 4, !tbaa !9
  %40 = icmp eq i32 0, %39
  br i1 %40, label %41, label %43

41:                                               ; preds = %12
  %42 = load i32, ptr %17, align 4, !tbaa !9
  br label %45

43:                                               ; preds = %12
  %44 = load i32, ptr %21, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %43, %41
  %46 = phi i32 [ %42, %41 ], [ %44, %43 ]
  store i32 %46, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %47 = load i32, ptr %22, align 4, !tbaa !9
  %48 = icmp eq i32 0, %47
  br i1 %48, label %49, label %57

49:                                               ; preds = %45
  %50 = load i32, ptr %18, align 4, !tbaa !9
  %51 = icmp ult i32 2, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  br label %55

53:                                               ; preds = %49
  %54 = load i32, ptr %18, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %53, %52
  %56 = phi i32 [ 2, %52 ], [ %54, %53 ]
  br label %59

57:                                               ; preds = %45
  %58 = load i32, ptr %22, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %57, %55
  %60 = phi i32 [ %56, %55 ], [ %58, %57 ]
  store i32 %60, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = load i32, ptr %25, align 4, !tbaa !9
  %63 = sub i32 %62, 1
  %64 = add i32 %61, %63
  %65 = load i32, ptr %25, align 4, !tbaa !9
  %66 = udiv i32 %64, %65
  store i32 %66, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %67 = load i32, ptr %23, align 4, !tbaa !9
  %68 = load i32, ptr %24, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %74

70:                                               ; preds = %59
  %71 = load i32, ptr %24, align 4, !tbaa !9
  %72 = icmp slt i32 0, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  br label %75

74:                                               ; preds = %70, %59
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 166, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

75:                                               ; preds = %73
  %76 = load i32, ptr %25, align 4, !tbaa !9
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = icmp ule i32 %76, %77
  br i1 %78, label %79, label %84

79:                                               ; preds = %75
  %80 = load i32, ptr %26, align 4, !tbaa !9
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = icmp ule i32 %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  br label %85

84:                                               ; preds = %79, %75
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.9, i32 noundef 167, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

85:                                               ; preds = %83
  %86 = load i32, ptr %25, align 4, !tbaa !9
  %87 = icmp ult i32 0, %86
  br i1 %87, label %88, label %92

88:                                               ; preds = %85
  %89 = load i32, ptr %26, align 4, !tbaa !9
  %90 = icmp ult i32 0, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  br label %93

92:                                               ; preds = %88, %85
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.9, i32 noundef 168, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

93:                                               ; preds = %91
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = icmp ule i32 %94, 255
  br i1 %95, label %96, label %97

96:                                               ; preds = %93
  br label %98

97:                                               ; preds = %93
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.9, i32 noundef 169, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

98:                                               ; preds = %96
  %99 = load i32, ptr %27, align 4, !tbaa !9
  %100 = icmp slt i32 0, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  br label %103

102:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.9, i32 noundef 170, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

103:                                              ; preds = %101
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = load i32, ptr %27, align 4, !tbaa !9
  %106 = icmp sle i32 %104, %105
  br i1 %106, label %107, label %141

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %24, align 4, !tbaa !9
  %110 = sub nsw i32 %109, 1
  %111 = add i32 %108, %110
  %112 = load i32, ptr %24, align 4, !tbaa !9
  %113 = udiv i32 %111, %112
  store i32 %113, ptr %32, align 4, !tbaa !9
  %114 = load i32, ptr %23, align 4, !tbaa !9
  %115 = load i32, ptr %32, align 4, !tbaa !9
  %116 = mul i32 %114, %115
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = icmp ult i32 %116, %117
  br i1 %118, label %119, label %123

119:                                              ; preds = %107
  %120 = load i32, ptr %23, align 4, !tbaa !9
  %121 = load i32, ptr %32, align 4, !tbaa !9
  %122 = mul i32 %120, %121
  br label %125

123:                                              ; preds = %107
  %124 = load i32, ptr %17, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %123, %119
  %126 = phi i32 [ %122, %119 ], [ %124, %123 ]
  store i32 %126, ptr %28, align 4, !tbaa !9
  %127 = load i32, ptr %28, align 4, !tbaa !9
  %128 = load i32, ptr %32, align 4, !tbaa !9
  %129 = add i32 %127, %128
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %136

132:                                              ; preds = %125
  %133 = load i32, ptr %28, align 4, !tbaa !9
  %134 = load i32, ptr %32, align 4, !tbaa !9
  %135 = add i32 %133, %134
  br label %138

136:                                              ; preds = %125
  %137 = load i32, ptr %17, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %136, %132
  %139 = phi i32 [ %135, %132 ], [ %137, %136 ]
  store i32 %139, ptr %29, align 4, !tbaa !9
  store i32 0, ptr %30, align 4, !tbaa !9
  %140 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %140, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  br label %218

141:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  %142 = load i32, ptr %24, align 4, !tbaa !9
  %143 = load i32, ptr %27, align 4, !tbaa !9
  %144 = sdiv i32 %142, %143
  store i32 %144, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  %145 = load i32, ptr %23, align 4, !tbaa !9
  %146 = load i32, ptr %33, align 4, !tbaa !9
  %147 = sdiv i32 %145, %146
  store i32 %147, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  %148 = load i32, ptr %23, align 4, !tbaa !9
  %149 = load i32, ptr %34, align 4, !tbaa !9
  %150 = load i32, ptr %33, align 4, !tbaa !9
  %151 = mul nsw i32 %149, %150
  %152 = sub nsw i32 %148, %151
  store i32 %152, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  %153 = load i32, ptr %18, align 4, !tbaa !9
  %154 = load i32, ptr %33, align 4, !tbaa !9
  %155 = sub nsw i32 %154, 1
  %156 = add i32 %153, %155
  %157 = load i32, ptr %33, align 4, !tbaa !9
  %158 = udiv i32 %156, %157
  %159 = load i32, ptr %26, align 4, !tbaa !9
  %160 = sub i32 %159, 1
  %161 = add i32 %158, %160
  %162 = load i32, ptr %26, align 4, !tbaa !9
  %163 = udiv i32 %161, %162
  %164 = load i32, ptr %26, align 4, !tbaa !9
  %165 = mul i32 %163, %164
  store i32 %165, ptr %36, align 4, !tbaa !9
  %166 = load i32, ptr %34, align 4, !tbaa !9
  %167 = load i32, ptr %25, align 4, !tbaa !9
  %168 = mul i32 %166, %167
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = icmp ult i32 %168, %169
  br i1 %170, label %171, label %175

171:                                              ; preds = %141
  %172 = load i32, ptr %34, align 4, !tbaa !9
  %173 = load i32, ptr %25, align 4, !tbaa !9
  %174 = mul i32 %172, %173
  br label %177

175:                                              ; preds = %141
  %176 = load i32, ptr %17, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %175, %171
  %178 = phi i32 [ %174, %171 ], [ %176, %175 ]
  store i32 %178, ptr %28, align 4, !tbaa !9
  %179 = load i32, ptr %28, align 4, !tbaa !9
  %180 = load i32, ptr %25, align 4, !tbaa !9
  %181 = add i32 %179, %180
  %182 = load i32, ptr %17, align 4, !tbaa !9
  %183 = icmp ult i32 %181, %182
  br i1 %183, label %184, label %188

184:                                              ; preds = %177
  %185 = load i32, ptr %28, align 4, !tbaa !9
  %186 = load i32, ptr %25, align 4, !tbaa !9
  %187 = add i32 %185, %186
  br label %190

188:                                              ; preds = %177
  %189 = load i32, ptr %17, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %188, %184
  %191 = phi i32 [ %187, %184 ], [ %189, %188 ]
  store i32 %191, ptr %29, align 4, !tbaa !9
  %192 = load i32, ptr %35, align 4, !tbaa !9
  %193 = load i32, ptr %36, align 4, !tbaa !9
  %194 = mul i32 %192, %193
  %195 = load i32, ptr %18, align 4, !tbaa !9
  %196 = icmp ult i32 %194, %195
  br i1 %196, label %197, label %201

197:                                              ; preds = %190
  %198 = load i32, ptr %35, align 4, !tbaa !9
  %199 = load i32, ptr %36, align 4, !tbaa !9
  %200 = mul i32 %198, %199
  br label %203

201:                                              ; preds = %190
  %202 = load i32, ptr %18, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %201, %197
  %204 = phi i32 [ %200, %197 ], [ %202, %201 ]
  store i32 %204, ptr %30, align 4, !tbaa !9
  %205 = load i32, ptr %30, align 4, !tbaa !9
  %206 = load i32, ptr %36, align 4, !tbaa !9
  %207 = add i32 %205, %206
  %208 = load i32, ptr %18, align 4, !tbaa !9
  %209 = icmp ult i32 %207, %208
  br i1 %209, label %210, label %214

210:                                              ; preds = %203
  %211 = load i32, ptr %30, align 4, !tbaa !9
  %212 = load i32, ptr %36, align 4, !tbaa !9
  %213 = add i32 %211, %212
  br label %216

214:                                              ; preds = %203
  %215 = load i32, ptr %18, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %214, %210
  %217 = phi i32 [ %213, %210 ], [ %215, %214 ]
  store i32 %217, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  br label %218

218:                                              ; preds = %216, %138
  %219 = load i32, ptr %28, align 4, !tbaa !9
  %220 = load i32, ptr %29, align 4, !tbaa !9
  %221 = icmp ule i32 %219, %220
  br i1 %221, label %222, label %227

222:                                              ; preds = %218
  %223 = load i32, ptr %29, align 4, !tbaa !9
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = icmp ule i32 %223, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %222
  br label %228

227:                                              ; preds = %222, %218
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.9, i32 noundef 186, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

228:                                              ; preds = %226
  %229 = load i32, ptr %30, align 4, !tbaa !9
  %230 = load i32, ptr %31, align 4, !tbaa !9
  %231 = icmp ule i32 %229, %230
  br i1 %231, label %232, label %237

232:                                              ; preds = %228
  %233 = load i32, ptr %31, align 4, !tbaa !9
  %234 = load i32, ptr %18, align 4, !tbaa !9
  %235 = icmp ule i32 %233, %234
  br i1 %235, label %236, label %237

236:                                              ; preds = %232
  br label %238

237:                                              ; preds = %232, %228
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.9, i32 noundef 187, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #4
  unreachable

238:                                              ; preds = %236
  %239 = load ptr, ptr %14, align 8, !tbaa !5
  %240 = load ptr, ptr %15, align 8, !tbaa !5
  %241 = load i32, ptr %16, align 4, !tbaa !9
  %242 = load i32, ptr %19, align 4, !tbaa !9
  %243 = load i32, ptr %20, align 4, !tbaa !9
  %244 = load i32, ptr %28, align 4, !tbaa !9
  %245 = load i32, ptr %29, align 4, !tbaa !9
  %246 = load i32, ptr %30, align 4, !tbaa !9
  %247 = load i32, ptr %31, align 4, !tbaa !9
  %248 = load i32, ptr %25, align 4, !tbaa !9
  %249 = load i32, ptr %26, align 4, !tbaa !9
  %250 = getelementptr inbounds %union.libxsmm_xcopykernel, ptr %13, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8
  %252 = ptrtoint ptr %251 to i64
  call void @libxsmm_otrans_internal(ptr noundef %239, ptr noundef %240, i32 noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef %248, i32 noundef %249, i64 %252)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_otrans_internal(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [46 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_otrans_task_internal = external hidden unnamed_addr constant [185 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_otrans_task_internal(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i64 %9, i32 noundef %10, i32 noundef %11) local_unnamed_addr #1 {
  %13 = icmp eq i32 %7, 0
  %14 = select i1 %13, i32 %3, i32 %7
  %15 = icmp eq i32 %8, 0
  %16 = tail call i32 @llvm.umin.i32(i32 %4, i32 2)
  %17 = select i1 %15, i32 %16, i32 %8
  %18 = add i32 %3, -1
  %19 = add i32 %18, %14
  %20 = udiv i32 %19, %14
  %21 = icmp slt i32 %10, %11
  %22 = icmp sgt i32 %11, 0
  %or.cond = and i1 %21, %22
  br i1 %or.cond, label %24, label %23

23:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef 166, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

24:                                               ; preds = %12
  %.not = icmp ugt i32 %14, %3
  %.not109 = icmp ugt i32 %17, %4
  %or.cond115 = or i1 %.not, %.not109
  br i1 %or.cond115, label %25, label %26

25:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.9, i32 noundef 167, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

26:                                               ; preds = %24
  %.not110 = icmp eq i32 %17, 0
  br i1 %.not110, label %27, label %28

27:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 168, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

28:                                               ; preds = %26
  %29 = icmp ult i32 %2, 256
  br i1 %29, label %31, label %30

30:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.9, i32 noundef 169, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

31:                                               ; preds = %28
  %32 = icmp sgt i32 %20, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.9, i32 noundef 170, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

34:                                               ; preds = %31
  %.not111 = icmp ult i32 %20, %11
  br i1 %.not111, label %42, label %35

35:                                               ; preds = %34
  %36 = add i32 %18, %11
  %37 = udiv i32 %36, %11
  %38 = mul i32 %37, %10
  %39 = tail call i32 @llvm.umin.i32(i32 %38, i32 %3)
  %40 = add i32 %39, %37
  %41 = tail call i32 @llvm.umin.i32(i32 %40, i32 %3)
  br label %61

42:                                               ; preds = %34
  %43 = udiv i32 %11, %20
  %44 = sdiv i32 %10, %43
  %45 = mul nsw i32 %44, %43
  %.recomposed = srem i32 %10, %43
  %46 = add i32 %4, -1
  %47 = add i32 %46, %43
  %48 = udiv i32 %47, %43
  %49 = add i32 %17, -1
  %50 = add i32 %49, %48
  %51 = urem i32 %50, %17
  %52 = sub nuw i32 %50, %51
  %53 = mul i32 %44, %14
  %54 = tail call i32 @llvm.umin.i32(i32 %53, i32 %3)
  %55 = add i32 %54, %14
  %56 = tail call i32 @llvm.umin.i32(i32 %55, i32 %3)
  %57 = mul i32 %52, %.recomposed
  %58 = tail call i32 @llvm.umin.i32(i32 %57, i32 %4)
  %59 = add i32 %58, %52
  %60 = tail call i32 @llvm.umin.i32(i32 %59, i32 %4)
  br label %61

61:                                               ; preds = %42, %35
  %.099 = phi i32 [ %4, %35 ], [ %60, %42 ]
  %.098 = phi i32 [ 0, %35 ], [ %58, %42 ]
  %.097 = phi i32 [ %41, %35 ], [ %56, %42 ]
  %.0 = phi i32 [ %39, %35 ], [ %54, %42 ]
  %.not113 = icmp ugt i32 %.0, %.097
  br i1 %.not113, label %62, label %63

62:                                               ; preds = %61
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.9, i32 noundef 186, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

63:                                               ; preds = %61
  %.not114 = icmp ugt i32 %.098, %.099
  br i1 %.not114, label %64, label %65

64:                                               ; preds = %63
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.9, i32 noundef 187, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_otrans_task_internal) #3
  unreachable

65:                                               ; preds = %63
  tail call void @libxsmm_otrans_internal(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %5, i32 noundef %6, i32 noundef %.0, i32 noundef %.097, i32 noundef %.098, i32 noundef %.099, i32 noundef %14, i32 noundef %17, i64 %9)
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_otrans_internal(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: CorrelatedValuePropagationPass,DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass