; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z23_hmt_test_Addition_Vec2P21hmt_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_Vec2 = type { %struct.anon }
%struct.anon = type { float, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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, ...) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23_hmt_test_Addition_Vec2P21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Vec2, align 4
  %4 = alloca %union.HMM_Vec2, align 4
  %5 = alloca %union.HMM_Vec2, align 4
  %6 = alloca %union.HMM_Vec2, align 4
  %7 = alloca %union.HMM_Vec2, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %union.HMM_Vec2, align 4
  %13 = alloca %union.HMM_Vec2, align 4
  %14 = alloca %union.HMM_Vec2, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %union.HMM_Vec2, align 4
  %20 = alloca %union.HMM_Vec2, align 4
  %21 = alloca %union.HMM_Vec2, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca %union.HMM_Vec2, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %31 = call <2 x float> @_ZL6HMM_V2ff(float noundef 1.000000e+00, float noundef 2.000000e+00)
  %32 = getelementptr inbounds %union.HMM_Vec2, ptr %3, i32 0, i32 0
  store <2 x float> %31, ptr %32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %33 = call <2 x float> @_ZL6HMM_V2ff(float noundef 3.000000e+00, float noundef 4.000000e+00)
  %34 = getelementptr inbounds %union.HMM_Vec2, ptr %4, i32 0, i32 0
  store <2 x float> %33, ptr %34, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !9
  %35 = getelementptr inbounds %union.HMM_Vec2, ptr %6, i32 0, i32 0
  %36 = load <2 x float>, ptr %35, align 4
  %37 = getelementptr inbounds %union.HMM_Vec2, ptr %7, i32 0, i32 0
  %38 = load <2 x float>, ptr %37, align 4
  %39 = call <2 x float> @_ZL9HMM_AddV28HMM_Vec2S_(<2 x float> %36, <2 x float> %38)
  %40 = getelementptr inbounds %union.HMM_Vec2, ptr %5, i32 0, i32 0
  store <2 x float> %39, ptr %40, align 4
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %45 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 0
  %46 = load float, ptr %45, align 4, !tbaa !10
  store float %46, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %47 = load float, ptr %8, align 4, !tbaa !14
  %48 = fsub float %47, 4.000000e+00
  store float %48, ptr %9, align 4, !tbaa !14
  %49 = load float, ptr %9, align 4, !tbaa !14
  %50 = fcmp olt float %49, 0xBE80000000000000
  br i1 %50, label %54, label %51

51:                                               ; preds = %1
  %52 = load float, ptr %9, align 4, !tbaa !14
  %53 = fcmp olt float 0x3E80000000000000, %52
  br i1 %53, label %54, label %65

54:                                               ; preds = %51, %1
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 4, !tbaa !16
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 10)
  %60 = load float, ptr %8, align 4, !tbaa !14
  %61 = fpext float %60 to double
  %62 = load float, ptr %9, align 4, !tbaa !14
  %63 = fpext float %62 to double
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 4.000000e+00, double noundef %61, double noundef %63)
  br label %65

65:                                               ; preds = %54, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %70 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !10
  store float %71, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %72 = load float, ptr %10, align 4, !tbaa !14
  %73 = fsub float %72, 6.000000e+00
  store float %73, ptr %11, align 4, !tbaa !14
  %74 = load float, ptr %11, align 4, !tbaa !14
  %75 = fcmp olt float %74, 0xBE80000000000000
  br i1 %75, label %79, label %76

76:                                               ; preds = %65
  %77 = load float, ptr %11, align 4, !tbaa !14
  %78 = fcmp olt float 0x3E80000000000000, %77
  br i1 %78, label %79, label %90

79:                                               ; preds = %76, %65
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !16
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %81, align 4, !tbaa !16
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 11)
  %85 = load float, ptr %10, align 4, !tbaa !14
  %86 = fpext float %85 to double
  %87 = load float, ptr %11, align 4, !tbaa !14
  %88 = fpext float %87 to double
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 6.000000e+00, double noundef %86, double noundef %88)
  br label %90

90:                                               ; preds = %79, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !9
  %91 = getelementptr inbounds %union.HMM_Vec2, ptr %13, i32 0, i32 0
  %92 = load <2 x float>, ptr %91, align 4
  %93 = getelementptr inbounds %union.HMM_Vec2, ptr %14, i32 0, i32 0
  %94 = load <2 x float>, ptr %93, align 4
  %95 = call <2 x float> @_ZL7HMM_Add8HMM_Vec2S_(<2 x float> %92, <2 x float> %94)
  %96 = getelementptr inbounds %union.HMM_Vec2, ptr %12, i32 0, i32 0
  store <2 x float> %95, ptr %96, align 4
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !11
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %98, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %101 = getelementptr inbounds %struct.anon, ptr %12, i32 0, i32 0
  %102 = load float, ptr %101, align 4, !tbaa !10
  store float %102, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %103 = load float, ptr %15, align 4, !tbaa !14
  %104 = fsub float %103, 4.000000e+00
  store float %104, ptr %16, align 4, !tbaa !14
  %105 = load float, ptr %16, align 4, !tbaa !14
  %106 = fcmp olt float %105, 0xBE80000000000000
  br i1 %106, label %110, label %107

107:                                              ; preds = %90
  %108 = load float, ptr %16, align 4, !tbaa !14
  %109 = fcmp olt float 0x3E80000000000000, %108
  br i1 %109, label %110, label %121

110:                                              ; preds = %107, %90
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !16
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 4, !tbaa !16
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 16)
  %116 = load float, ptr %15, align 4, !tbaa !14
  %117 = fpext float %116 to double
  %118 = load float, ptr %16, align 4, !tbaa !14
  %119 = fpext float %118 to double
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 4.000000e+00, double noundef %117, double noundef %119)
  br label %121

121:                                              ; preds = %110, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %123, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %126 = getelementptr inbounds %struct.anon, ptr %12, i32 0, i32 1
  %127 = load float, ptr %126, align 4, !tbaa !10
  store float %127, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %128 = load float, ptr %17, align 4, !tbaa !14
  %129 = fsub float %128, 6.000000e+00
  store float %129, ptr %18, align 4, !tbaa !14
  %130 = load float, ptr %18, align 4, !tbaa !14
  %131 = fcmp olt float %130, 0xBE80000000000000
  br i1 %131, label %135, label %132

132:                                              ; preds = %121
  %133 = load float, ptr %18, align 4, !tbaa !14
  %134 = fcmp olt float 0x3E80000000000000, %133
  br i1 %134, label %135, label %146

135:                                              ; preds = %132, %121
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !16
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %137, align 4, !tbaa !16
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 17)
  %141 = load float, ptr %17, align 4, !tbaa !14
  %142 = fpext float %141 to double
  %143 = load float, ptr %18, align 4, !tbaa !14
  %144 = fpext float %143 to double
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 6.000000e+00, double noundef %142, double noundef %144)
  br label %146

146:                                              ; preds = %135, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !9
  %147 = getelementptr inbounds %union.HMM_Vec2, ptr %20, i32 0, i32 0
  %148 = load <2 x float>, ptr %147, align 4
  %149 = getelementptr inbounds %union.HMM_Vec2, ptr %21, i32 0, i32 0
  %150 = load <2 x float>, ptr %149, align 4
  %151 = call <2 x float> @_Zpl8HMM_Vec2S_(<2 x float> %148, <2 x float> %150)
  %152 = getelementptr inbounds %union.HMM_Vec2, ptr %19, i32 0, i32 0
  store <2 x float> %151, ptr %152, align 4
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !11
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %154, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %157 = getelementptr inbounds %struct.anon, ptr %19, i32 0, i32 0
  %158 = load float, ptr %157, align 4, !tbaa !10
  store float %158, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %159 = load float, ptr %22, align 4, !tbaa !14
  %160 = fsub float %159, 4.000000e+00
  store float %160, ptr %23, align 4, !tbaa !14
  %161 = load float, ptr %23, align 4, !tbaa !14
  %162 = fcmp olt float %161, 0xBE80000000000000
  br i1 %162, label %166, label %163

163:                                              ; preds = %146
  %164 = load float, ptr %23, align 4, !tbaa !14
  %165 = fcmp olt float 0x3E80000000000000, %164
  br i1 %165, label %166, label %177

166:                                              ; preds = %163, %146
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %167, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !16
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %168, align 4, !tbaa !16
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 23)
  %172 = load float, ptr %22, align 4, !tbaa !14
  %173 = fpext float %172 to double
  %174 = load float, ptr %23, align 4, !tbaa !14
  %175 = fpext float %174 to double
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 4.000000e+00, double noundef %173, double noundef %175)
  br label %177

177:                                              ; preds = %166, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 4, !tbaa !11
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %179, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %182 = getelementptr inbounds %struct.anon, ptr %19, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !10
  store float %183, ptr %24, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %184 = load float, ptr %24, align 4, !tbaa !14
  %185 = fsub float %184, 6.000000e+00
  store float %185, ptr %25, align 4, !tbaa !14
  %186 = load float, ptr %25, align 4, !tbaa !14
  %187 = fcmp olt float %186, 0xBE80000000000000
  br i1 %187, label %191, label %188

188:                                              ; preds = %177
  %189 = load float, ptr %25, align 4, !tbaa !14
  %190 = fcmp olt float 0x3E80000000000000, %189
  br i1 %190, label %191, label %202

191:                                              ; preds = %188, %177
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !16
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %193, align 4, !tbaa !16
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 24)
  %197 = load float, ptr %24, align 4, !tbaa !14
  %198 = fpext float %197 to double
  %199 = load float, ptr %25, align 4, !tbaa !14
  %200 = fpext float %199 to double
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 6.000000e+00, double noundef %198, double noundef %200)
  br label %202

202:                                              ; preds = %191, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !9
  %203 = getelementptr inbounds %union.HMM_Vec2, ptr %26, i32 0, i32 0
  %204 = load <2 x float>, ptr %203, align 4
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZpLR8HMM_Vec2S_(ptr noundef nonnull align 4 dereferenceable(8) %3, <2 x float> %204)
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 4, !tbaa !11
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %207, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %210 = getelementptr inbounds %struct.anon, ptr %3, i32 0, i32 0
  %211 = load float, ptr %210, align 4, !tbaa !10
  store float %211, ptr %27, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %212 = load float, ptr %27, align 4, !tbaa !14
  %213 = fsub float %212, 4.000000e+00
  store float %213, ptr %28, align 4, !tbaa !14
  %214 = load float, ptr %28, align 4, !tbaa !14
  %215 = fcmp olt float %214, 0xBE80000000000000
  br i1 %215, label %219, label %216

216:                                              ; preds = %202
  %217 = load float, ptr %28, align 4, !tbaa !14
  %218 = fcmp olt float 0x3E80000000000000, %217
  br i1 %218, label %219, label %230

219:                                              ; preds = %216, %202
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !16
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %221, align 4, !tbaa !16
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 28)
  %225 = load float, ptr %27, align 4, !tbaa !14
  %226 = fpext float %225 to double
  %227 = load float, ptr %28, align 4, !tbaa !14
  %228 = fpext float %227 to double
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 4.000000e+00, double noundef %226, double noundef %228)
  br label %230

230:                                              ; preds = %219, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  %231 = load ptr, ptr %2, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 4, !tbaa !11
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %232, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %235 = getelementptr inbounds %struct.anon, ptr %3, i32 0, i32 1
  %236 = load float, ptr %235, align 4, !tbaa !10
  store float %236, ptr %29, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %237 = load float, ptr %29, align 4, !tbaa !14
  %238 = fsub float %237, 6.000000e+00
  store float %238, ptr %30, align 4, !tbaa !14
  %239 = load float, ptr %30, align 4, !tbaa !14
  %240 = fcmp olt float %239, 0xBE80000000000000
  br i1 %240, label %244, label %241

241:                                              ; preds = %230
  %242 = load float, ptr %30, align 4, !tbaa !14
  %243 = fcmp olt float 0x3E80000000000000, %242
  br i1 %243, label %244, label %255

244:                                              ; preds = %241, %230
  %245 = load ptr, ptr %2, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %245, i32 0, i32 1
  %247 = load i32, ptr %246, align 4, !tbaa !16
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %246, align 4, !tbaa !16
  %249 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 29)
  %250 = load float, ptr %29, align 4, !tbaa !14
  %251 = fpext float %250 to double
  %252 = load float, ptr %30, align 4, !tbaa !14
  %253 = fpext float %252 to double
  %254 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 6.000000e+00, double noundef %251, double noundef %253)
  br label %255

255:                                              ; preds = %244, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZpLR8HMM_Vec2S_(ptr noundef nonnull align 4 dereferenceable(8), <2 x float>) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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"="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 #4 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 8, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS21hmt_testresult_struct", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !13, i64 4}


; 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_Vec2 = type { %struct.anon }
%struct.anon = type { float, 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL6HMM_V2ff(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23_hmt_test_Addition_Vec2P21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #3 {
  %2 = alloca %union.HMM_Vec2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %3 = tail call <2 x float> @_ZL6HMM_V2ff(float noundef 1.000000e+00, float noundef 2.000000e+00)
  store <2 x float> %3, ptr %2, align 8
  %4 = tail call <2 x float> @_ZL6HMM_V2ff(float noundef 3.000000e+00, float noundef 4.000000e+00)
  %5 = tail call <2 x float> @_ZL9HMM_AddV28HMM_Vec2S_(<2 x float> %3, <2 x float> %4)
  %6 = load i32, ptr %0, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr %0, align 4, !tbaa !5
  %.sroa.063.0.vec.extract = extractelement <2 x float> %5, i64 0
  %8 = fadd float %.sroa.063.0.vec.extract, -4.000000e+00
  %9 = tail call float @llvm.fabs.f32(float %8)
  %or.cond = fcmp ogt float %9, 0x3E80000000000000
  br i1 %or.cond, label %10, label %18

10:                                               ; preds = %1
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !10
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr %11, align 4, !tbaa !10
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 10)
  %15 = fpext float %.sroa.063.0.vec.extract to double
  %16 = fpext float %8 to double
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 4.000000e+00, double noundef %15, double noundef %16)
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %1, %10
  %19 = phi i32 [ %7, %1 ], [ %.pre, %10 ]
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %0, align 4, !tbaa !5
  %.sroa.063.4.vec.extract = extractelement <2 x float> %5, i64 1
  %21 = fadd float %.sroa.063.4.vec.extract, -6.000000e+00
  %22 = tail call float @llvm.fabs.f32(float %21)
  %or.cond3 = fcmp ogt float %22, 0x3E80000000000000
  br i1 %or.cond3, label %23, label %31

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %0, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !10
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %24, align 4, !tbaa !10
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 11)
  %28 = fpext float %.sroa.063.4.vec.extract to double
  %29 = fpext float %21 to double
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 6.000000e+00, double noundef %28, double noundef %29)
  br label %31

31:                                               ; preds = %18, %23
  %32 = tail call <2 x float> @_ZL7HMM_Add8HMM_Vec2S_(<2 x float> %3, <2 x float> %4)
  %33 = load i32, ptr %0, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %0, align 4, !tbaa !5
  %.sroa.050.0.vec.extract = extractelement <2 x float> %32, i64 0
  %35 = fadd float %.sroa.050.0.vec.extract, -4.000000e+00
  %36 = tail call float @llvm.fabs.f32(float %35)
  %or.cond5 = fcmp ogt float %36, 0x3E80000000000000
  br i1 %or.cond5, label %37, label %45

37:                                               ; preds = %31
  %38 = getelementptr inbounds i8, ptr %0, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !10
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %38, align 4, !tbaa !10
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 16)
  %42 = fpext float %.sroa.050.0.vec.extract to double
  %43 = fpext float %35 to double
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 4.000000e+00, double noundef %42, double noundef %43)
  %.pre84 = load i32, ptr %0, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %31, %37
  %46 = phi i32 [ %34, %31 ], [ %.pre84, %37 ]
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %0, align 4, !tbaa !5
  %.sroa.050.4.vec.extract = extractelement <2 x float> %32, i64 1
  %48 = fadd float %.sroa.050.4.vec.extract, -6.000000e+00
  %49 = tail call float @llvm.fabs.f32(float %48)
  %or.cond7 = fcmp ogt float %49, 0x3E80000000000000
  br i1 %or.cond7, label %50, label %58

50:                                               ; preds = %45
  %51 = getelementptr inbounds i8, ptr %0, i64 4
  %52 = load i32, ptr %51, align 4, !tbaa !10
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !10
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 17)
  %55 = fpext float %.sroa.050.4.vec.extract to double
  %56 = fpext float %48 to double
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 6.000000e+00, double noundef %55, double noundef %56)
  br label %58

58:                                               ; preds = %45, %50
  %59 = tail call <2 x float> @_Zpl8HMM_Vec2S_(<2 x float> %3, <2 x float> %4)
  %60 = load i32, ptr %0, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %0, align 4, !tbaa !5
  %.sroa.037.0.vec.extract = extractelement <2 x float> %59, i64 0
  %62 = fadd float %.sroa.037.0.vec.extract, -4.000000e+00
  %63 = tail call float @llvm.fabs.f32(float %62)
  %or.cond9 = fcmp ogt float %63, 0x3E80000000000000
  br i1 %or.cond9, label %64, label %72

64:                                               ; preds = %58
  %65 = getelementptr inbounds i8, ptr %0, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !10
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !10
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 23)
  %69 = fpext float %.sroa.037.0.vec.extract to double
  %70 = fpext float %62 to double
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 4.000000e+00, double noundef %69, double noundef %70)
  %.pre85 = load i32, ptr %0, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %58, %64
  %73 = phi i32 [ %61, %58 ], [ %.pre85, %64 ]
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %0, align 4, !tbaa !5
  %.sroa.037.4.vec.extract = extractelement <2 x float> %59, i64 1
  %75 = fadd float %.sroa.037.4.vec.extract, -6.000000e+00
  %76 = tail call float @llvm.fabs.f32(float %75)
  %or.cond11 = fcmp ogt float %76, 0x3E80000000000000
  br i1 %or.cond11, label %77, label %85

77:                                               ; preds = %72
  %78 = getelementptr inbounds i8, ptr %0, i64 4
  %79 = load i32, ptr %78, align 4, !tbaa !10
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %78, align 4, !tbaa !10
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 24)
  %82 = fpext float %.sroa.037.4.vec.extract to double
  %83 = fpext float %75 to double
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 6.000000e+00, double noundef %82, double noundef %83)
  br label %85

85:                                               ; preds = %72, %77
  %86 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZpLR8HMM_Vec2S_(ptr noundef nonnull align 4 dereferenceable(8) %2, <2 x float> %4)
  %87 = load i32, ptr %0, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %0, align 4, !tbaa !5
  %89 = load float, ptr %2, align 8, !tbaa !11
  %90 = fadd float %89, -4.000000e+00
  %91 = call float @llvm.fabs.f32(float %90)
  %or.cond13 = fcmp ogt float %91, 0x3E80000000000000
  br i1 %or.cond13, label %92, label %100

92:                                               ; preds = %85
  %93 = getelementptr inbounds i8, ptr %0, i64 4
  %94 = load i32, ptr %93, align 4, !tbaa !10
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 4, !tbaa !10
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 28)
  %97 = fpext float %89 to double
  %98 = fpext float %90 to double
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 4.000000e+00, double noundef %97, double noundef %98)
  %.pre86 = load i32, ptr %0, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %85, %92
  %101 = phi i32 [ %88, %85 ], [ %.pre86, %92 ]
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %0, align 4, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %2, i64 4
  %104 = load float, ptr %103, align 4, !tbaa !11
  %105 = fadd float %104, -6.000000e+00
  %106 = call float @llvm.fabs.f32(float %105)
  %or.cond15 = fcmp ogt float %106, 0x3E80000000000000
  br i1 %or.cond15, label %107, label %115

107:                                              ; preds = %100
  %108 = getelementptr inbounds i8, ptr %0, i64 4
  %109 = load i32, ptr %108, align 4, !tbaa !10
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %108, align 4, !tbaa !10
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 29)
  %112 = fpext float %104 to double
  %113 = fpext float %105 to double
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 6.000000e+00, double noundef %112, double noundef %113)
  br label %115

115:                                              ; preds = %100, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL9HMM_AddV28HMM_Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL7HMM_Add8HMM_Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_Zpl8HMM_Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZpLR8HMM_Vec2S_(ptr noundef nonnull align 4 dereferenceable(8), <2 x float>) local_unnamed_addr #2

; 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 = { inlinehint 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 = { 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 #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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass