; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/algorithm/src (HisEqualization)

; 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"

%struct.HyperMat = type { i32, i32, i32, i32, [3 x i8], ptr, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @hyper_mat_linear_tension(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.HyperMat, ptr %22, i32 0, i32 4
  %24 = getelementptr inbounds [3 x i8], ptr %23, i64 0, i64 0
  %25 = call i32 @cmpstr(ptr noundef %24, ptr noundef @.str.4)
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  br label %32

28:                                               ; preds = %2
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #5
  unreachable

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.HyperMat, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !9
  store i32 %35, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.HyperMat, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !13
  store i32 %38, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.HyperMat, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !14
  store i32 %41, ptr %7, align 4, !tbaa !12
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.HyperMat, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !12
  %46 = icmp eq i32 %44, %45
  br i1 %46, label %47, label %60

47:                                               ; preds = %32
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.HyperMat, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !13
  %51 = load i32, ptr %6, align 4, !tbaa !12
  %52 = icmp eq i32 %50, %51
  br i1 %52, label %53, label %60

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.HyperMat, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 8, !tbaa !14
  %57 = load i32, ptr %7, align 4, !tbaa !12
  %58 = icmp eq i32 %56, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %53
  br label %64

60:                                               ; preds = %53, %47, %32
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #5
  unreachable

64:                                               ; preds = %59
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.HyperMat, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  br label %74

70:                                               ; preds = %64
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #5
  unreachable

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.HyperMat, ptr %75, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  store ptr %77, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.HyperMat, ptr %78, i32 0, i32 5
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  store ptr %80, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0.000000e+00, ptr %10, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float 1.000000e+06, ptr %11, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store float 0.000000e+00, ptr %12, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !12
  br label %81

81:                                               ; preds = %258, %74
  %82 = load i32, ptr %14, align 4, !tbaa !12
  %83 = load i32, ptr %7, align 4, !tbaa !12
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %261

86:                                               ; preds = %81
  store float 0.000000e+00, ptr %10, align 4, !tbaa !17
  store float 1.000000e+09, ptr %11, align 4, !tbaa !17
  store float 0.000000e+00, ptr %12, align 4, !tbaa !17
  store i32 0, ptr %13, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !12
  br label %87

87:                                               ; preds = %130, %86
  %88 = load i32, ptr %16, align 4, !tbaa !12
  %89 = load i32, ptr %6, align 4, !tbaa !12
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %133

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %93

93:                                               ; preds = %126, %92
  %94 = load i32, ptr %17, align 4, !tbaa !12
  %95 = load i32, ptr %5, align 4, !tbaa !12
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %129

98:                                               ; preds = %93
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load i32, ptr %14, align 4, !tbaa !12
  %101 = load i32, ptr %5, align 4, !tbaa !12
  %102 = mul nsw i32 %100, %101
  %103 = load i32, ptr %6, align 4, !tbaa !12
  %104 = mul nsw i32 %102, %103
  %105 = load i32, ptr %16, align 4, !tbaa !12
  %106 = load i32, ptr %5, align 4, !tbaa !12
  %107 = mul nsw i32 %105, %106
  %108 = add nsw i32 %104, %107
  %109 = load i32, ptr %17, align 4, !tbaa !12
  %110 = add nsw i32 %108, %109
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds float, ptr %99, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !17
  store float %113, ptr %12, align 4, !tbaa !17
  %114 = load float, ptr %10, align 4, !tbaa !17
  %115 = load float, ptr %12, align 4, !tbaa !17
  %116 = fcmp olt float %114, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %98
  %118 = load float, ptr %12, align 4, !tbaa !17
  store float %118, ptr %10, align 4, !tbaa !17
  br label %119

119:                                              ; preds = %117, %98
  %120 = load float, ptr %11, align 4, !tbaa !17
  %121 = load float, ptr %12, align 4, !tbaa !17
  %122 = fcmp ogt float %120, %121
  br i1 %122, label %123, label %125

123:                                              ; preds = %119
  %124 = load float, ptr %12, align 4, !tbaa !17
  store float %124, ptr %11, align 4, !tbaa !17
  br label %125

125:                                              ; preds = %123, %119
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %17, align 4, !tbaa !12
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %17, align 4, !tbaa !12
  br label %93, !llvm.loop !19

129:                                              ; preds = %97
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %16, align 4, !tbaa !12
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %16, align 4, !tbaa !12
  br label %87, !llvm.loop !21

133:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %134 = load float, ptr %10, align 4, !tbaa !17
  %135 = load float, ptr %11, align 4, !tbaa !17
  %136 = fsub float %134, %135
  %137 = fdiv float 2.550000e+02, %136
  store float %137, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %138 = load float, ptr %11, align 4, !tbaa !17
  %139 = fneg float %138
  %140 = fmul float %139, 2.550000e+02
  %141 = load float, ptr %10, align 4, !tbaa !17
  %142 = load float, ptr %11, align 4, !tbaa !17
  %143 = fsub float %141, %142
  %144 = fdiv float %140, %143
  store float %144, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !12
  br label %145

145:                                              ; preds = %254, %133
  %146 = load i32, ptr %20, align 4, !tbaa !12
  %147 = load i32, ptr %6, align 4, !tbaa !12
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %257

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !12
  br label %151

151:                                              ; preds = %250, %150
  %152 = load i32, ptr %21, align 4, !tbaa !12
  %153 = load i32, ptr %5, align 4, !tbaa !12
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %253

156:                                              ; preds = %151
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load i32, ptr %14, align 4, !tbaa !12
  %159 = load i32, ptr %5, align 4, !tbaa !12
  %160 = mul nsw i32 %158, %159
  %161 = load i32, ptr %6, align 4, !tbaa !12
  %162 = mul nsw i32 %160, %161
  %163 = load i32, ptr %20, align 4, !tbaa !12
  %164 = load i32, ptr %5, align 4, !tbaa !12
  %165 = mul nsw i32 %163, %164
  %166 = add nsw i32 %162, %165
  %167 = load i32, ptr %21, align 4, !tbaa !12
  %168 = add nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %157, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !17
  store float %171, ptr %12, align 4, !tbaa !17
  %172 = load float, ptr %12, align 4, !tbaa !17
  %173 = load float, ptr %18, align 4, !tbaa !17
  %174 = load float, ptr %19, align 4, !tbaa !17
  %175 = call float @llvm.fmuladd.f32(float %172, float %173, float %174)
  %176 = fptosi float %175 to i32
  store i32 %176, ptr %13, align 4, !tbaa !12
  %177 = load i32, ptr %13, align 4, !tbaa !12
  %178 = icmp sle i32 %177, 0
  br i1 %178, label %179, label %213

179:                                              ; preds = %156
  %180 = load float, ptr %12, align 4, !tbaa !17
  %181 = fcmp oeq float %180, 0.000000e+00
  br i1 %181, label %182, label %197

182:                                              ; preds = %179
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = load i32, ptr %14, align 4, !tbaa !12
  %185 = load i32, ptr %5, align 4, !tbaa !12
  %186 = mul nsw i32 %184, %185
  %187 = load i32, ptr %6, align 4, !tbaa !12
  %188 = mul nsw i32 %186, %187
  %189 = load i32, ptr %20, align 4, !tbaa !12
  %190 = load i32, ptr %5, align 4, !tbaa !12
  %191 = mul nsw i32 %189, %190
  %192 = add nsw i32 %188, %191
  %193 = load i32, ptr %21, align 4, !tbaa !12
  %194 = add nsw i32 %192, %193
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i8, ptr %183, i64 %195
  store i8 0, ptr %196, align 1, !tbaa !22
  br label %212

197:                                              ; preds = %179
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = load i32, ptr %14, align 4, !tbaa !12
  %200 = load i32, ptr %5, align 4, !tbaa !12
  %201 = mul nsw i32 %199, %200
  %202 = load i32, ptr %6, align 4, !tbaa !12
  %203 = mul nsw i32 %201, %202
  %204 = load i32, ptr %20, align 4, !tbaa !12
  %205 = load i32, ptr %5, align 4, !tbaa !12
  %206 = mul nsw i32 %204, %205
  %207 = add nsw i32 %203, %206
  %208 = load i32, ptr %21, align 4, !tbaa !12
  %209 = add nsw i32 %207, %208
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i8, ptr %198, i64 %210
  store i8 1, ptr %211, align 1, !tbaa !22
  br label %212

212:                                              ; preds = %197, %182
  br label %249

213:                                              ; preds = %156
  %214 = load i32, ptr %13, align 4, !tbaa !12
  %215 = icmp sge i32 %214, 255
  br i1 %215, label %216, label %231

216:                                              ; preds = %213
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load i32, ptr %14, align 4, !tbaa !12
  %219 = load i32, ptr %5, align 4, !tbaa !12
  %220 = mul nsw i32 %218, %219
  %221 = load i32, ptr %6, align 4, !tbaa !12
  %222 = mul nsw i32 %220, %221
  %223 = load i32, ptr %20, align 4, !tbaa !12
  %224 = load i32, ptr %5, align 4, !tbaa !12
  %225 = mul nsw i32 %223, %224
  %226 = add nsw i32 %222, %225
  %227 = load i32, ptr %21, align 4, !tbaa !12
  %228 = add nsw i32 %226, %227
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds i8, ptr %217, i64 %229
  store i8 -1, ptr %230, align 1, !tbaa !22
  br label %248

231:                                              ; preds = %213
  %232 = load i32, ptr %13, align 4, !tbaa !12
  %233 = trunc i32 %232 to i8
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = load i32, ptr %14, align 4, !tbaa !12
  %236 = load i32, ptr %5, align 4, !tbaa !12
  %237 = mul nsw i32 %235, %236
  %238 = load i32, ptr %6, align 4, !tbaa !12
  %239 = mul nsw i32 %237, %238
  %240 = load i32, ptr %20, align 4, !tbaa !12
  %241 = load i32, ptr %5, align 4, !tbaa !12
  %242 = mul nsw i32 %240, %241
  %243 = add nsw i32 %239, %242
  %244 = load i32, ptr %21, align 4, !tbaa !12
  %245 = add nsw i32 %243, %244
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i8, ptr %234, i64 %246
  store i8 %233, ptr %247, align 1, !tbaa !22
  br label %248

248:                                              ; preds = %231, %216
  br label %249

249:                                              ; preds = %248, %212
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %21, align 4, !tbaa !12
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %21, align 4, !tbaa !12
  br label %151, !llvm.loop !23

253:                                              ; preds = %155
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %20, align 4, !tbaa !12
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %20, align 4, !tbaa !12
  br label %145, !llvm.loop !24

257:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %14, align 4, !tbaa !12
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %14, align 4, !tbaa !12
  br label %81, !llvm.loop !25

261:                                              ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

declare i32 @cmpstr(ptr noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

attributes #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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !7, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !6, i64 24}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


; 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 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @hyper_mat_linear_tension(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = tail call i32 @cmpstr(ptr noundef nonnull %3, ptr noundef nonnull @.str.4) #5
  %5 = icmp eq i32 %4, 1
  br i1 %5, label %10, label %6

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

10:                                               ; preds = %2
  %11 = load i32, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !12
  %16 = load i32, ptr %1, align 8, !tbaa !5
  %17 = icmp eq i32 %16, %11
  br i1 %17, label %18, label %26

18:                                               ; preds = %10
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp eq i32 %20, %13
  br i1 %21, label %22, label %26

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !12
  %25 = icmp eq i32 %24, %15
  br i1 %25, label %30, label %26

26:                                               ; preds = %22, %18, %10
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

30:                                               ; preds = %22
  %31 = getelementptr inbounds i8, ptr %1, i64 12
  %32 = load i32, ptr %31, align 4, !tbaa !13
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %38, label %34

34:                                               ; preds = %30
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #6
  unreachable

38:                                               ; preds = %30
  %39 = getelementptr inbounds i8, ptr %0, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %1, i64 24
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = icmp sgt i32 %15, 0
  br i1 %43, label %.preheader104.lr.ph, label %._crit_edge

.preheader104.lr.ph:                              ; preds = %38
  %44 = icmp sgt i32 %13, 0
  %45 = icmp sgt i32 %11, 0
  br i1 %44, label %.preheader104.us.preheader, label %._crit_edge

.preheader104.us.preheader:                       ; preds = %.preheader104.lr.ph
  %wide.trip.count = zext i32 %11 to i64
  %wide.trip.count161 = zext nneg i32 %11 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %46 = icmp eq i32 %11, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader103.lr.ph.us

.preheader.lr.ph.us:                              ; preds = %._crit_edge.us.us
  %47 = fsub float %.2.us.us.lcssa, %.291.us.us.lcssa
  %48 = fdiv float 2.550000e+02, %47
  %49 = fmul float %.291.us.us.lcssa, -2.550000e+02
  %50 = fdiv float %49, %47
  br i1 %45, label %.preheader.us.us, label %._crit_edge118.us

.preheader103.lr.ph.us:                           ; preds = %._crit_edge118.us, %.preheader104.us.preheader
  %.094120.us = phi i32 [ %75, %._crit_edge118.us ], [ 0, %.preheader104.us.preheader ]
  %51 = mul i32 %.094120.us, %13
  br i1 %45, label %.preheader103.us.us, label %._crit_edge118.us

.preheader103.us.us:                              ; preds = %.preheader103.lr.ph.us, %._crit_edge.us.us
  %.088111.us.us = phi float [ %.2.us.us.lcssa, %._crit_edge.us.us ], [ 0.000000e+00, %.preheader103.lr.ph.us ]
  %.089110.us.us = phi float [ %.291.us.us.lcssa, %._crit_edge.us.us ], [ 1.000000e+09, %.preheader103.lr.ph.us ]
  %.093109.us.us = phi i32 [ %74, %._crit_edge.us.us ], [ 0, %.preheader103.lr.ph.us ]
  %reass.add101.us.us = add i32 %.093109.us.us, %51
  %reass.mul102.us.us = mul i32 %reass.add101.us.us, %11
  br i1 %46, label %._crit_edge.us.us.unr-lcssa, label %.preheader103.us.us.new

.preheader103.us.us.new:                          ; preds = %.preheader103.us.us, %.preheader103.us.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader103.us.us.new ], [ 0, %.preheader103.us.us ]
  %.1107.us.us = phi float [ %.2.us.us.1, %.preheader103.us.us.new ], [ %.088111.us.us, %.preheader103.us.us ]
  %.190106.us.us = phi float [ %.291.us.us.1, %.preheader103.us.us.new ], [ %.089110.us.us, %.preheader103.us.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader103.us.us.new ], [ 0, %.preheader103.us.us ]
  %52 = trunc nuw nsw i64 %indvars.iv to i32
  %53 = add i32 %reass.mul102.us.us, %52
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %40, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !15
  %57 = fcmp olt float %.1107.us.us, %56
  %.2.us.us = select i1 %57, float %56, float %.1107.us.us
  %58 = fcmp ogt float %.190106.us.us, %56
  %.291.us.us = select i1 %58, float %56, float %.190106.us.us
  %59 = trunc i64 %indvars.iv to i32
  %60 = or disjoint i32 %59, 1
  %61 = add i32 %reass.mul102.us.us, %60
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %40, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !15
  %65 = fcmp olt float %.2.us.us, %64
  %.2.us.us.1 = select i1 %65, float %64, float %.2.us.us
  %66 = fcmp ogt float %.291.us.us, %64
  %.291.us.us.1 = select i1 %66, float %64, float %.291.us.us
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.us.unr-lcssa, label %.preheader103.us.us.new, !llvm.loop !17

._crit_edge.us.us.unr-lcssa:                      ; preds = %.preheader103.us.us.new, %.preheader103.us.us
  %.2.us.us.lcssa.ph = phi float [ poison, %.preheader103.us.us ], [ %.2.us.us.1, %.preheader103.us.us.new ]
  %.291.us.us.lcssa.ph = phi float [ poison, %.preheader103.us.us ], [ %.291.us.us.1, %.preheader103.us.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader103.us.us ], [ %indvars.iv.next.1, %.preheader103.us.us.new ]
  %.1107.us.us.unr = phi float [ %.088111.us.us, %.preheader103.us.us ], [ %.2.us.us.1, %.preheader103.us.us.new ]
  %.190106.us.us.unr = phi float [ %.089110.us.us, %.preheader103.us.us ], [ %.291.us.us.1, %.preheader103.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us.us, label %._crit_edge.us.us.epilog-lcssa

._crit_edge.us.us.epilog-lcssa:                   ; preds = %._crit_edge.us.us.unr-lcssa
  %67 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %68 = add i32 %reass.mul102.us.us, %67
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %40, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !15
  %72 = fcmp olt float %.1107.us.us.unr, %71
  %.2.us.us.epil = select i1 %72, float %71, float %.1107.us.us.unr
  %73 = fcmp ogt float %.190106.us.us.unr, %71
  %.291.us.us.epil = select i1 %73, float %71, float %.190106.us.us.unr
  br label %._crit_edge.us.us

._crit_edge.us.us:                                ; preds = %._crit_edge.us.us.unr-lcssa, %._crit_edge.us.us.epilog-lcssa
  %.2.us.us.lcssa = phi float [ %.2.us.us.lcssa.ph, %._crit_edge.us.us.unr-lcssa ], [ %.2.us.us.epil, %._crit_edge.us.us.epilog-lcssa ]
  %.291.us.us.lcssa = phi float [ %.291.us.us.lcssa.ph, %._crit_edge.us.us.unr-lcssa ], [ %.291.us.us.epil, %._crit_edge.us.us.epilog-lcssa ]
  %74 = add nuw nsw i32 %.093109.us.us, 1
  %exitcond157.not = icmp eq i32 %74, %13
  br i1 %exitcond157.not, label %.preheader.lr.ph.us, label %.preheader103.us.us, !llvm.loop !19

._crit_edge118.us:                                ; preds = %._crit_edge.us119.us, %.preheader103.lr.ph.us, %.preheader.lr.ph.us
  %75 = add nuw nsw i32 %.094120.us, 1
  %exitcond164.not = icmp eq i32 %75, %15
  br i1 %exitcond164.not, label %._crit_edge, label %.preheader103.lr.ph.us, !llvm.loop !20

.preheader.us.us:                                 ; preds = %.preheader.lr.ph.us, %._crit_edge.us119.us
  %.087117.us.us = phi i32 [ %98, %._crit_edge.us119.us ], [ 0, %.preheader.lr.ph.us ]
  %reass.add.us.us = add i32 %.087117.us.us, %51
  %reass.mul.us.us = mul i32 %reass.add.us.us, %11
  br label %76

76:                                               ; preds = %97, %.preheader.us.us
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %97 ], [ 0, %.preheader.us.us ]
  %77 = trunc nuw nsw i64 %indvars.iv158 to i32
  %78 = add i32 %reass.mul.us.us, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %40, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !15
  %82 = tail call float @llvm.fmuladd.f32(float %81, float %48, float %50)
  %83 = fptosi float %82 to i32
  %84 = icmp slt i32 %83, 1
  br i1 %84, label %92, label %85

85:                                               ; preds = %76
  %86 = icmp ugt i32 %83, 254
  br i1 %86, label %90, label %87

87:                                               ; preds = %85
  %88 = trunc nuw i32 %83 to i8
  %89 = getelementptr inbounds i8, ptr %42, i64 %79
  store i8 %88, ptr %89, align 1, !tbaa !21
  br label %97

90:                                               ; preds = %85
  %91 = getelementptr inbounds i8, ptr %42, i64 %79
  store i8 -1, ptr %91, align 1, !tbaa !21
  br label %97

92:                                               ; preds = %76
  %93 = fcmp oeq float %81, 0.000000e+00
  %94 = getelementptr inbounds i8, ptr %42, i64 %79
  br i1 %93, label %96, label %95

95:                                               ; preds = %92
  store i8 1, ptr %94, align 1, !tbaa !21
  br label %97

96:                                               ; preds = %92
  store i8 0, ptr %94, align 1, !tbaa !21
  br label %97

97:                                               ; preds = %96, %95, %90, %87
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %exitcond162.not = icmp eq i64 %indvars.iv.next159, %wide.trip.count161
  br i1 %exitcond162.not, label %._crit_edge.us119.us, label %76, !llvm.loop !22

._crit_edge.us119.us:                             ; preds = %97
  %98 = add nuw nsw i32 %.087117.us.us, 1
  %exitcond163.not = icmp eq i32 %98, %13
  br i1 %exitcond163.not, label %._crit_edge118.us, label %.preheader.us.us, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge118.us, %.preheader104.lr.ph, %38
  ret void
}

declare i32 @cmpstr(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

attributes #0 = { nofree 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 = { 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 = { "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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !8, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !10, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = !{!8, !8, i64 0}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass