; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z39_hmt_test_Initialization_MatrixDiagonalP21hmt_testresult_struct)

; 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.HMM_Mat2 = type { [2 x [2 x float]] }
%union.HMM_Mat3 = type { [3 x [3 x float]] }
%union.HMM_Mat4 = type { [4 x %union.HMM_Vec4] }
%union.HMM_Vec4 = type { <4 x float> }
%struct.hmt_testresult_struct = type { i32, i32 }

@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z39_hmt_test_Initialization_MatrixDiagonalP21hmt_testresult_struct(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Mat2, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %union.HMM_Mat3, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %union.HMM_Mat4, align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #4
  %25 = call { <2 x float>, <2 x float> } @_ZL7HMM_M2Df(float noundef 1.000000e+00)
  %26 = getelementptr inbounds %union.HMM_Mat2, ptr %3, i32 0, i32 0
  %27 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %28 = extractvalue { <2 x float>, <2 x float> } %25, 0
  store <2 x float> %28, ptr %27, align 4
  %29 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %30 = extractvalue { <2 x float>, <2 x float> } %25, 1
  store <2 x float> %30, ptr %29, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %111, %1
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 2
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %114

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %107, %35
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = icmp slt i32 %37, 2
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %110

40:                                               ; preds = %36
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %75

44:                                               ; preds = %40
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %49 = load i32, ptr %4, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [2 x [2 x float]], ptr %3, i64 0, i64 %50
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [2 x float], ptr %51, i64 0, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !13
  store float %55, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %56 = load float, ptr %7, align 4, !tbaa !14
  %57 = fsub float %56, 1.000000e+00
  store float %57, ptr %8, align 4, !tbaa !14
  %58 = load float, ptr %8, align 4, !tbaa !14
  %59 = fcmp olt float %58, 0xBE80000000000000
  br i1 %59, label %63, label %60

60:                                               ; preds = %44
  %61 = load float, ptr %8, align 4, !tbaa !14
  %62 = fcmp olt float 0x3E80000000000000, %61
  br i1 %62, label %63, label %74

63:                                               ; preds = %60, %44
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 4, !tbaa !16
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !16
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 180)
  %69 = load float, ptr %7, align 4, !tbaa !14
  %70 = fpext float %69 to double
  %71 = load float, ptr %8, align 4, !tbaa !14
  %72 = fpext float %71 to double
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %70, double noundef %72)
  br label %74

74:                                               ; preds = %63, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %106

75:                                               ; preds = %40
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !11
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %80 = load i32, ptr %4, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x [2 x float]], ptr %3, i64 0, i64 %81
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [2 x float], ptr %82, i64 0, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !13
  store float %86, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %87 = load float, ptr %9, align 4, !tbaa !14
  %88 = fsub float %87, 0.000000e+00
  store float %88, ptr %10, align 4, !tbaa !14
  %89 = load float, ptr %10, align 4, !tbaa !14
  %90 = fcmp olt float %89, 0xBE80000000000000
  br i1 %90, label %94, label %91

91:                                               ; preds = %75
  %92 = load float, ptr %10, align 4, !tbaa !14
  %93 = fcmp olt float 0x3E80000000000000, %92
  br i1 %93, label %94, label %105

94:                                               ; preds = %91, %75
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !16
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %96, align 4, !tbaa !16
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 182)
  %100 = load float, ptr %9, align 4, !tbaa !14
  %101 = fpext float %100 to double
  %102 = load float, ptr %10, align 4, !tbaa !14
  %103 = fpext float %102 to double
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 0.000000e+00, double noundef %101, double noundef %103)
  br label %105

105:                                              ; preds = %94, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %106

106:                                              ; preds = %105, %74
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %6, align 4, !tbaa !9
  br label %36, !llvm.loop !17

110:                                              ; preds = %39
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %4, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %4, align 4, !tbaa !9
  br label %31, !llvm.loop !19

114:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 36, ptr %11) #4
  call void @_ZL7HMM_M3Df(ptr dead_on_unwind writable sret(%union.HMM_Mat3) align 4 %11, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %195, %114
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = icmp slt i32 %116, 3
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %198

119:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %191, %119
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = icmp slt i32 %121, 3
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %194

124:                                              ; preds = %120
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = icmp eq i32 %125, %126
  br i1 %127, label %128, label %159

128:                                              ; preds = %124
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %130, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [3 x [3 x float]], ptr %11, i64 0, i64 %134
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [3 x float], ptr %135, i64 0, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !13
  store float %139, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %140 = load float, ptr %14, align 4, !tbaa !14
  %141 = fsub float %140, 1.000000e+00
  store float %141, ptr %15, align 4, !tbaa !14
  %142 = load float, ptr %15, align 4, !tbaa !14
  %143 = fcmp olt float %142, 0xBE80000000000000
  br i1 %143, label %147, label %144

144:                                              ; preds = %128
  %145 = load float, ptr %15, align 4, !tbaa !14
  %146 = fcmp olt float 0x3E80000000000000, %145
  br i1 %146, label %147, label %158

147:                                              ; preds = %144, %128
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %148, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !16
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %149, align 4, !tbaa !16
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 196)
  %153 = load float, ptr %14, align 4, !tbaa !14
  %154 = fpext float %153 to double
  %155 = load float, ptr %15, align 4, !tbaa !14
  %156 = fpext float %155 to double
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %154, double noundef %156)
  br label %158

158:                                              ; preds = %147, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %190

159:                                              ; preds = %124
  %160 = load ptr, ptr %2, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %160, i32 0, i32 0
  %162 = load i32, ptr %161, align 4, !tbaa !11
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %161, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [3 x [3 x float]], ptr %11, i64 0, i64 %165
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [3 x float], ptr %166, i64 0, i64 %168
  %170 = load float, ptr %169, align 4, !tbaa !13
  store float %170, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %171 = load float, ptr %16, align 4, !tbaa !14
  %172 = fsub float %171, 0.000000e+00
  store float %172, ptr %17, align 4, !tbaa !14
  %173 = load float, ptr %17, align 4, !tbaa !14
  %174 = fcmp olt float %173, 0xBE80000000000000
  br i1 %174, label %178, label %175

175:                                              ; preds = %159
  %176 = load float, ptr %17, align 4, !tbaa !14
  %177 = fcmp olt float 0x3E80000000000000, %176
  br i1 %177, label %178, label %189

178:                                              ; preds = %175, %159
  %179 = load ptr, ptr %2, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %179, i32 0, i32 1
  %181 = load i32, ptr %180, align 4, !tbaa !16
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %180, align 4, !tbaa !16
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 198)
  %184 = load float, ptr %16, align 4, !tbaa !14
  %185 = fpext float %184 to double
  %186 = load float, ptr %17, align 4, !tbaa !14
  %187 = fpext float %186 to double
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 0.000000e+00, double noundef %185, double noundef %187)
  br label %189

189:                                              ; preds = %178, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %190

190:                                              ; preds = %189, %158
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %13, align 4, !tbaa !9
  br label %120, !llvm.loop !20

194:                                              ; preds = %123
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %12, align 4, !tbaa !9
  br label %115, !llvm.loop !21

198:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @_ZL7HMM_M4Df(ptr dead_on_unwind writable sret(%union.HMM_Mat4) align 16 %18, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %279, %198
  %200 = load i32, ptr %19, align 4, !tbaa !9
  %201 = icmp slt i32 %200, 4
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %282

203:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %275, %203
  %205 = load i32, ptr %20, align 4, !tbaa !9
  %206 = icmp slt i32 %205, 4
  br i1 %206, label %208, label %207

207:                                              ; preds = %204
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %278

208:                                              ; preds = %204
  %209 = load i32, ptr %19, align 4, !tbaa !9
  %210 = load i32, ptr %20, align 4, !tbaa !9
  %211 = icmp eq i32 %209, %210
  br i1 %211, label %212, label %243

212:                                              ; preds = %208
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !11
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %214, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %217 = load i32, ptr %19, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [4 x [4 x float]], ptr %18, i64 0, i64 %218
  %220 = load i32, ptr %20, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [4 x float], ptr %219, i64 0, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !13
  store float %223, ptr %21, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %224 = load float, ptr %21, align 4, !tbaa !14
  %225 = fsub float %224, 1.000000e+00
  store float %225, ptr %22, align 4, !tbaa !14
  %226 = load float, ptr %22, align 4, !tbaa !14
  %227 = fcmp olt float %226, 0xBE80000000000000
  br i1 %227, label %231, label %228

228:                                              ; preds = %212
  %229 = load float, ptr %22, align 4, !tbaa !14
  %230 = fcmp olt float 0x3E80000000000000, %229
  br i1 %230, label %231, label %242

231:                                              ; preds = %228, %212
  %232 = load ptr, ptr %2, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %232, i32 0, i32 1
  %234 = load i32, ptr %233, align 4, !tbaa !16
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %233, align 4, !tbaa !16
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 212)
  %237 = load float, ptr %21, align 4, !tbaa !14
  %238 = fpext float %237 to double
  %239 = load float, ptr %22, align 4, !tbaa !14
  %240 = fpext float %239 to double
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %238, double noundef %240)
  br label %242

242:                                              ; preds = %231, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %274

243:                                              ; preds = %208
  %244 = load ptr, ptr %2, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %244, i32 0, i32 0
  %246 = load i32, ptr %245, align 4, !tbaa !11
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %245, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %248 = load i32, ptr %19, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [4 x [4 x float]], ptr %18, i64 0, i64 %249
  %251 = load i32, ptr %20, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [4 x float], ptr %250, i64 0, i64 %252
  %254 = load float, ptr %253, align 4, !tbaa !13
  store float %254, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %255 = load float, ptr %23, align 4, !tbaa !14
  %256 = fsub float %255, 0.000000e+00
  store float %256, ptr %24, align 4, !tbaa !14
  %257 = load float, ptr %24, align 4, !tbaa !14
  %258 = fcmp olt float %257, 0xBE80000000000000
  br i1 %258, label %262, label %259

259:                                              ; preds = %243
  %260 = load float, ptr %24, align 4, !tbaa !14
  %261 = fcmp olt float 0x3E80000000000000, %260
  br i1 %261, label %262, label %273

262:                                              ; preds = %259, %243
  %263 = load ptr, ptr %2, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %263, i32 0, i32 1
  %265 = load i32, ptr %264, align 4, !tbaa !16
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %264, align 4, !tbaa !16
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 214)
  %268 = load float, ptr %23, align 4, !tbaa !14
  %269 = fpext float %268 to double
  %270 = load float, ptr %24, align 4, !tbaa !14
  %271 = fpext float %270 to double
  %272 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 0.000000e+00, double noundef %269, double noundef %271)
  br label %273

273:                                              ; preds = %262, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %274

274:                                              ; preds = %273, %242
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %20, align 4, !tbaa !9
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %20, align 4, !tbaa !9
  br label %204, !llvm.loop !22

278:                                              ; preds = %207
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %19, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %19, align 4, !tbaa !9
  br label %199, !llvm.loop !23

282:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZL7HMM_M2Df(float noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7HMM_M3Df(ptr dead_on_unwind noalias writable sret(%union.HMM_Mat3) align 4, float noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7HMM_M4Df(ptr dead_on_unwind noalias writable sret(%union.HMM_Mat4) align 16, float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS21hmt_testresult_struct", !10, i64 0, !10, i64 4}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !10, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


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

%union.HMM_Mat3 = type { [3 x [3 x float]] }
%union.HMM_Mat4 = type { [4 x %union.HMM_Vec4] }
%union.HMM_Vec4 = type { <4 x float> }

@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z39_hmt_test_Initialization_MatrixDiagonalP21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = alloca %union.HMM_Mat3, align 4
  %3 = alloca %union.HMM_Mat4, align 16
  %4 = tail call { <2 x float>, <2 x float> } @_ZL7HMM_M2Df(float noundef 1.000000e+00)
  %5 = extractvalue { <2 x float>, <2 x float> } %4, 0
  %6 = extractvalue { <2 x float>, <2 x float> } %4, 1
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %0, align 4, !tbaa !5
  %9 = add nsw i32 %8, 1
  store i32 %9, ptr %0, align 4, !tbaa !5
  %.sroa.0.0.vec.extract111 = extractelement <2 x float> %5, i64 0
  %10 = fadd float %.sroa.0.0.vec.extract111, -1.000000e+00
  %11 = tail call float @llvm.fabs.f32(float %10)
  %or.cond = fcmp ogt float %11, 0x3E80000000000000
  br i1 %or.cond, label %12, label %19

12:                                               ; preds = %1
  %13 = load i32, ptr %7, align 4, !tbaa !10
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %7, align 4, !tbaa !10
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 180)
  %16 = fpext float %.sroa.0.0.vec.extract111 to double
  %17 = fpext float %10 to double
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %16, double noundef %17)
  br label %19

19:                                               ; preds = %1, %12
  %20 = load i32, ptr %0, align 4, !tbaa !5
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %0, align 4, !tbaa !5
  %.sroa.0.4.vec.extract = extractelement <2 x float> %5, i64 1
  %22 = tail call float @llvm.fabs.f32(float %.sroa.0.4.vec.extract)
  %or.cond3.1 = fcmp ogt float %22, 0x3E80000000000000
  br i1 %or.cond3.1, label %23, label %.preheader88.1

23:                                               ; preds = %19
  %24 = load i32, ptr %7, align 4, !tbaa !10
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %7, align 4, !tbaa !10
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 182)
  %27 = fpext float %.sroa.0.4.vec.extract to double
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %27, double noundef %27)
  br label %.preheader88.1

.preheader88.1:                                   ; preds = %19, %23
  %29 = load i32, ptr %0, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %0, align 4, !tbaa !5
  %.sroa.7.8.vec.extract = extractelement <2 x float> %6, i64 0
  %31 = tail call float @llvm.fabs.f32(float %.sroa.7.8.vec.extract)
  %or.cond3.197 = fcmp ogt float %31, 0x3E80000000000000
  br i1 %or.cond3.197, label %32, label %38

32:                                               ; preds = %.preheader88.1
  %33 = load i32, ptr %7, align 4, !tbaa !10
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %7, align 4, !tbaa !10
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 182)
  %36 = fpext float %.sroa.7.8.vec.extract to double
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %36, double noundef %36)
  br label %38

38:                                               ; preds = %.preheader88.1, %32
  %39 = load i32, ptr %0, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %0, align 4, !tbaa !5
  %.sroa.7.12.vec.extract117 = extractelement <2 x float> %6, i64 1
  %41 = fadd float %.sroa.7.12.vec.extract117, -1.000000e+00
  %42 = tail call float @llvm.fabs.f32(float %41)
  %or.cond.1.1 = fcmp ogt float %42, 0x3E80000000000000
  br i1 %or.cond.1.1, label %43, label %50

43:                                               ; preds = %38
  %44 = load i32, ptr %7, align 4, !tbaa !10
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !10
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 180)
  %47 = fpext float %.sroa.7.12.vec.extract117 to double
  %48 = fpext float %41 to double
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %47, double noundef %48)
  br label %50

50:                                               ; preds = %38, %43
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %2) #5
  call void @_ZL7HMM_M3Df(ptr dead_on_unwind nonnull writable sret(%union.HMM_Mat3) align 4 %2, float noundef 1.000000e+00)
  %51 = load i32, ptr %0, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %0, align 4, !tbaa !5
  %53 = load float, ptr %2, align 4, !tbaa !11
  %54 = fadd float %53, -1.000000e+00
  %55 = call float @llvm.fabs.f32(float %54)
  %or.cond5.peel = fcmp ogt float %55, 0x3E80000000000000
  br i1 %or.cond5.peel, label %56, label %63

56:                                               ; preds = %50
  %57 = load i32, ptr %7, align 4, !tbaa !10
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %7, align 4, !tbaa !10
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 196)
  %60 = fpext float %53 to double
  %61 = fpext float %54 to double
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %60, double noundef %61)
  br label %63

63:                                               ; preds = %50, %56
  %64 = load i32, ptr %0, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %0, align 4, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %2, i64 4
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = call float @llvm.fabs.f32(float %67)
  %or.cond7.1.peel = fcmp ogt float %68, 0x3E80000000000000
  br i1 %or.cond7.1.peel, label %69, label %75

69:                                               ; preds = %63
  %70 = load i32, ptr %7, align 4, !tbaa !10
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !10
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 198)
  %73 = fpext float %67 to double
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %73, double noundef %73)
  br label %75

75:                                               ; preds = %63, %69
  %76 = load i32, ptr %0, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %0, align 4, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %2, i64 8
  %79 = load float, ptr %78, align 4, !tbaa !11
  %80 = call float @llvm.fabs.f32(float %79)
  %or.cond7.2.peel = fcmp ogt float %80, 0x3E80000000000000
  br i1 %or.cond7.2.peel, label %81, label %.preheader87.peel.next

81:                                               ; preds = %75
  %82 = load i32, ptr %7, align 4, !tbaa !10
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %7, align 4, !tbaa !10
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 198)
  %85 = fpext float %79 to double
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %85, double noundef %85)
  br label %.preheader87.peel.next

.preheader87.peel.next:                           ; preds = %75, %81
  %87 = getelementptr inbounds i8, ptr %2, i64 16
  %88 = load i32, ptr %0, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %0, align 4, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %2, i64 12
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = call float @llvm.fabs.f32(float %91)
  %or.cond7.peel = fcmp ogt float %92, 0x3E80000000000000
  br i1 %or.cond7.peel, label %93, label %99

93:                                               ; preds = %.preheader87.peel.next
  %94 = load i32, ptr %7, align 4, !tbaa !10
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !10
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 198)
  %97 = fpext float %91 to double
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %97, double noundef %97)
  br label %99

99:                                               ; preds = %93, %.preheader87.peel.next
  %100 = load i32, ptr %0, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %0, align 4, !tbaa !5
  %102 = load float, ptr %87, align 4, !tbaa !11
  %103 = fadd float %102, -1.000000e+00
  %104 = call float @llvm.fabs.f32(float %103)
  %or.cond5.1.peel = fcmp ogt float %104, 0x3E80000000000000
  br i1 %or.cond5.1.peel, label %105, label %.thread.peel

105:                                              ; preds = %99
  %106 = load i32, ptr %7, align 4, !tbaa !10
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !10
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 196)
  %109 = fpext float %102 to double
  %110 = fpext float %103 to double
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %109, double noundef %110)
  br label %.thread.peel

.thread.peel:                                     ; preds = %105, %99
  %112 = load i32, ptr %0, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %0, align 4, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %2, i64 20
  %115 = load float, ptr %114, align 4, !tbaa !11
  %116 = call float @llvm.fabs.f32(float %115)
  %or.cond7.2.peel139 = fcmp ogt float %116, 0x3E80000000000000
  br i1 %or.cond7.2.peel139, label %117, label %.peel.next

117:                                              ; preds = %.thread.peel
  %118 = load i32, ptr %7, align 4, !tbaa !10
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %7, align 4, !tbaa !10
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 198)
  %121 = fpext float %115 to double
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %121, double noundef %121)
  br label %.peel.next

.peel.next:                                       ; preds = %117, %.thread.peel
  %123 = load i32, ptr %0, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %0, align 4, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %2, i64 24
  %126 = load float, ptr %125, align 4, !tbaa !11
  %127 = call float @llvm.fabs.f32(float %126)
  %or.cond7.peel141 = fcmp ogt float %127, 0x3E80000000000000
  br i1 %or.cond7.peel141, label %128, label %134

128:                                              ; preds = %.peel.next
  %129 = load i32, ptr %7, align 4, !tbaa !10
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %7, align 4, !tbaa !10
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 198)
  %132 = fpext float %126 to double
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %132, double noundef %132)
  br label %134

134:                                              ; preds = %128, %.peel.next
  %135 = load i32, ptr %0, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %0, align 4, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %2, i64 28
  %138 = load float, ptr %137, align 4, !tbaa !11
  %139 = call float @llvm.fabs.f32(float %138)
  %or.cond7.1.peel142 = fcmp ogt float %139, 0x3E80000000000000
  br i1 %or.cond7.1.peel142, label %140, label %193

140:                                              ; preds = %134
  %141 = load i32, ptr %7, align 4, !tbaa !10
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %7, align 4, !tbaa !10
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 198)
  %144 = fpext float %138 to double
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %144, double noundef %144)
  br label %193

.loopexit:                                        ; preds = %200, %193
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @_ZL7HMM_M4Df(ptr dead_on_unwind nonnull writable sret(%union.HMM_Mat4) align 16 %3, float noundef 1.000000e+00)
  %146 = getelementptr inbounds i8, ptr %3, i64 20
  %147 = getelementptr inbounds i8, ptr %3, i64 40
  %148 = load i32, ptr %0, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %0, align 4, !tbaa !5
  %150 = load float, ptr %3, align 16, !tbaa !11
  %151 = fadd float %150, -1.000000e+00
  %152 = call float @llvm.fabs.f32(float %151)
  %or.cond9.peel = fcmp ogt float %152, 0x3E80000000000000
  br i1 %or.cond9.peel, label %153, label %.thread129.peel

153:                                              ; preds = %.loopexit
  %154 = load i32, ptr %7, align 4, !tbaa !10
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %7, align 4, !tbaa !10
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 212)
  %157 = fpext float %150 to double
  %158 = fpext float %151 to double
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %157, double noundef %158)
  br label %.thread129.peel

.thread129.peel:                                  ; preds = %153, %.loopexit
  %160 = load i32, ptr %0, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %0, align 4, !tbaa !5
  %162 = getelementptr inbounds i8, ptr %3, i64 4
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = call float @llvm.fabs.f32(float %163)
  %or.cond11.1.peel = fcmp ogt float %164, 0x3E80000000000000
  br i1 %or.cond11.1.peel, label %165, label %.thread131.peel

165:                                              ; preds = %.thread129.peel
  %166 = load i32, ptr %7, align 4, !tbaa !10
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %7, align 4, !tbaa !10
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %169 = fpext float %163 to double
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %169, double noundef %169)
  br label %.thread131.peel

.thread131.peel:                                  ; preds = %.thread129.peel, %165
  %171 = load i32, ptr %0, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %0, align 4, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %3, i64 8
  %174 = load float, ptr %173, align 8, !tbaa !11
  %175 = call float @llvm.fabs.f32(float %174)
  %or.cond11.2.peel = fcmp ogt float %175, 0x3E80000000000000
  br i1 %or.cond11.2.peel, label %176, label %.thread133.peel

176:                                              ; preds = %.thread131.peel
  %177 = load i32, ptr %7, align 4, !tbaa !10
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %7, align 4, !tbaa !10
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %180 = fpext float %174 to double
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %180, double noundef %180)
  br label %.thread133.peel

.thread133.peel:                                  ; preds = %.thread131.peel, %176
  %182 = load i32, ptr %0, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %0, align 4, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %3, i64 12
  %185 = load float, ptr %184, align 4, !tbaa !11
  %186 = call float @llvm.fabs.f32(float %185)
  %or.cond11.3.peel = fcmp ogt float %186, 0x3E80000000000000
  br i1 %or.cond11.3.peel, label %187, label %.loopexit.peel.newph

187:                                              ; preds = %.thread133.peel
  %188 = load i32, ptr %7, align 4, !tbaa !10
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %7, align 4, !tbaa !10
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %191 = fpext float %185 to double
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %191, double noundef %191)
  br label %.loopexit.peel.newph

.loopexit.peel.newph:                             ; preds = %.thread133.peel, %187
  br label %.preheader

193:                                              ; preds = %134, %140
  %194 = load i32, ptr %0, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %0, align 4, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %2, i64 32
  %197 = load float, ptr %196, align 4, !tbaa !11
  %198 = fadd float %197, -1.000000e+00
  %199 = call float @llvm.fabs.f32(float %198)
  %or.cond5.2 = fcmp ogt float %199, 0x3E80000000000000
  br i1 %or.cond5.2, label %200, label %.loopexit

200:                                              ; preds = %193
  %201 = load i32, ptr %7, align 4, !tbaa !10
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %7, align 4, !tbaa !10
  %203 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 196)
  %204 = fpext float %197 to double
  %205 = fpext float %198 to double
  %206 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %204, double noundef %205)
  br label %.loopexit

.preheader:                                       ; preds = %297, %.loopexit.peel.newph
  %indvars.iv106 = phi i64 [ 1, %.loopexit.peel.newph ], [ %indvars.iv.next107, %297 ]
  %207 = load i32, ptr %0, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %0, align 4, !tbaa !5
  %209 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 %indvars.iv106, i64 0
  %210 = load float, ptr %209, align 16, !tbaa !11
  %211 = call float @llvm.fabs.f32(float %210)
  %or.cond11 = fcmp ogt float %211, 0x3E80000000000000
  br i1 %or.cond11, label %213, label %219

212:                                              ; preds = %290, %.loopexit150
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %2) #5
  ret void

213:                                              ; preds = %.preheader
  %214 = load i32, ptr %7, align 4, !tbaa !10
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %7, align 4, !tbaa !10
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %217 = fpext float %210 to double
  %218 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %217, double noundef %217)
  br label %219

219:                                              ; preds = %213, %.preheader
  %220 = icmp eq i64 %indvars.iv106, 1
  br i1 %220, label %232, label %.thread129

.thread129:                                       ; preds = %219
  %221 = load i32, ptr %0, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %0, align 4, !tbaa !5
  %223 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 %indvars.iv106, i64 1
  %224 = load float, ptr %223, align 4, !tbaa !11
  %225 = call float @llvm.fabs.f32(float %224)
  %or.cond11.1 = fcmp ogt float %225, 0x3E80000000000000
  br i1 %or.cond11.1, label %226, label %245

226:                                              ; preds = %.thread129
  %227 = load i32, ptr %7, align 4, !tbaa !10
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %7, align 4, !tbaa !10
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %230 = fpext float %224 to double
  %231 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %230, double noundef %230)
  br label %245

232:                                              ; preds = %219
  %233 = load i32, ptr %0, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %0, align 4, !tbaa !5
  %235 = load float, ptr %146, align 4, !tbaa !11
  %236 = fadd float %235, -1.000000e+00
  %237 = call float @llvm.fabs.f32(float %236)
  %or.cond9.1 = fcmp ogt float %237, 0x3E80000000000000
  br i1 %or.cond9.1, label %238, label %.thread131

238:                                              ; preds = %232
  %239 = load i32, ptr %7, align 4, !tbaa !10
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %7, align 4, !tbaa !10
  %241 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 212)
  %242 = fpext float %235 to double
  %243 = fpext float %236 to double
  %244 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %242, double noundef %243)
  br label %.thread131

245:                                              ; preds = %226, %.thread129
  %246 = icmp eq i64 %indvars.iv106, 2
  br i1 %246, label %258, label %.thread131

.thread131:                                       ; preds = %232, %238, %245
  %247 = load i32, ptr %0, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %0, align 4, !tbaa !5
  %249 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 %indvars.iv106, i64 2
  %250 = load float, ptr %249, align 8, !tbaa !11
  %251 = call float @llvm.fabs.f32(float %250)
  %or.cond11.2 = fcmp ogt float %251, 0x3E80000000000000
  br i1 %or.cond11.2, label %252, label %271

252:                                              ; preds = %.thread131
  %253 = load i32, ptr %7, align 4, !tbaa !10
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %7, align 4, !tbaa !10
  %255 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %256 = fpext float %250 to double
  %257 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %256, double noundef %256)
  br label %271

258:                                              ; preds = %245
  %259 = load i32, ptr %0, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %0, align 4, !tbaa !5
  %261 = load float, ptr %147, align 8, !tbaa !11
  %262 = fadd float %261, -1.000000e+00
  %263 = call float @llvm.fabs.f32(float %262)
  %or.cond9.2 = fcmp ogt float %263, 0x3E80000000000000
  br i1 %or.cond9.2, label %264, label %.thread133

264:                                              ; preds = %258
  %265 = load i32, ptr %7, align 4, !tbaa !10
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %7, align 4, !tbaa !10
  %267 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 212)
  %268 = fpext float %261 to double
  %269 = fpext float %262 to double
  %270 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %268, double noundef %269)
  br label %.thread133

271:                                              ; preds = %252, %.thread131
  %272 = icmp eq i64 %indvars.iv106, 3
  br i1 %272, label %.loopexit150, label %.thread133

.thread133:                                       ; preds = %258, %264, %271
  %273 = load i32, ptr %0, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %0, align 4, !tbaa !5
  %275 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 %indvars.iv106, i64 3
  %276 = load float, ptr %275, align 4, !tbaa !11
  %277 = call float @llvm.fabs.f32(float %276)
  %or.cond11.3 = fcmp ogt float %277, 0x3E80000000000000
  br i1 %or.cond11.3, label %278, label %297

278:                                              ; preds = %.thread133
  %279 = load i32, ptr %7, align 4, !tbaa !10
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %7, align 4, !tbaa !10
  %281 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 214)
  %282 = fpext float %276 to double
  %283 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 0.000000e+00, double noundef %282, double noundef %282)
  br label %297

.loopexit150:                                     ; preds = %271
  %284 = load i32, ptr %0, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %0, align 4, !tbaa !5
  %286 = getelementptr inbounds i8, ptr %3, i64 60
  %287 = load float, ptr %286, align 4, !tbaa !11
  %288 = fadd float %287, -1.000000e+00
  %289 = call float @llvm.fabs.f32(float %288)
  %or.cond9.3 = fcmp ogt float %289, 0x3E80000000000000
  br i1 %or.cond9.3, label %290, label %212

290:                                              ; preds = %.loopexit150
  %291 = load i32, ptr %7, align 4, !tbaa !10
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %7, align 4, !tbaa !10
  %293 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 212)
  %294 = fpext float %287 to double
  %295 = fpext float %288 to double
  %296 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %294, double noundef %295)
  br label %212

297:                                              ; preds = %278, %.thread133
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  br label %.preheader, !llvm.loop !12
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZL7HMM_M2Df(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7HMM_M3Df(ptr dead_on_unwind noalias writable sret(%union.HMM_Mat3) align 4, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7HMM_M4Df(ptr dead_on_unwind noalias writable sret(%union.HMM_Mat4) align 16, float noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress 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 = { 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 = !{!"_ZTS21hmt_testresult_struct", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!8, !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass