; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z29_hmt_test_Division_Vec2ScalarP21hmt_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 @_Z29_hmt_test_Division_Vec2ScalarP21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Vec2, align 4
  %4 = alloca float, align 4
  %5 = alloca %union.HMM_Vec2, align 4
  %6 = alloca %union.HMM_Vec2, 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_Vec2, align 4
  %12 = alloca %union.HMM_Vec2, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %union.HMM_Vec2, align 4
  %18 = alloca %union.HMM_Vec2, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %27 = call <2 x float> @_ZL6HMM_V2ff(float noundef 1.000000e+00, float noundef 2.000000e+00)
  %28 = getelementptr inbounds %union.HMM_Vec2, ptr %3, i32 0, i32 0
  store <2 x float> %27, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 2.000000e+00, ptr %4, align 4, !tbaa !9
  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 !11
  %29 = load float, ptr %4, align 4, !tbaa !9
  %30 = getelementptr inbounds %union.HMM_Vec2, ptr %6, i32 0, i32 0
  %31 = load <2 x float>, ptr %30, align 4
  %32 = call <2 x float> @_ZL10HMM_DivV2F8HMM_Vec2f(<2 x float> %31, float noundef %29)
  %33 = getelementptr inbounds %union.HMM_Vec2, ptr %5, i32 0, i32 0
  store <2 x float> %32, ptr %33, align 4
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 4, !tbaa !13
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %38 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 0
  %39 = load float, ptr %38, align 4, !tbaa !12
  store float %39, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %40 = load float, ptr %7, align 4, !tbaa !9
  %41 = fsub float %40, 5.000000e-01
  store float %41, ptr %8, align 4, !tbaa !9
  %42 = load float, ptr %8, align 4, !tbaa !9
  %43 = fcmp olt float %42, 0xBE80000000000000
  br i1 %43, label %47, label %44

44:                                               ; preds = %1
  %45 = load float, ptr %8, align 4, !tbaa !9
  %46 = fcmp olt float 0x3E80000000000000, %45
  br i1 %46, label %47, label %58

47:                                               ; preds = %44, %1
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !16
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %49, align 4, !tbaa !16
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 40)
  %53 = load float, ptr %7, align 4, !tbaa !9
  %54 = fpext float %53 to double
  %55 = load float, ptr %8, align 4, !tbaa !9
  %56 = fpext float %55 to double
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %54, double noundef %56)
  br label %58

58:                                               ; preds = %47, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %63 = getelementptr inbounds %struct.anon, ptr %5, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !12
  store float %64, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %65 = load float, ptr %9, align 4, !tbaa !9
  %66 = fsub float %65, 1.000000e+00
  store float %66, ptr %10, align 4, !tbaa !9
  %67 = load float, ptr %10, align 4, !tbaa !9
  %68 = fcmp olt float %67, 0xBE80000000000000
  br i1 %68, label %72, label %69

69:                                               ; preds = %58
  %70 = load float, ptr %10, align 4, !tbaa !9
  %71 = fcmp olt float 0x3E80000000000000, %70
  br i1 %71, label %72, label %83

72:                                               ; preds = %69, %58
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !16
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 4, !tbaa !16
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 41)
  %78 = load float, ptr %9, align 4, !tbaa !9
  %79 = fpext float %78 to double
  %80 = load float, ptr %10, align 4, !tbaa !9
  %81 = fpext float %80 to double
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %79, double noundef %81)
  br label %83

83:                                               ; preds = %72, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !11
  %84 = load float, ptr %4, align 4, !tbaa !9
  %85 = getelementptr inbounds %union.HMM_Vec2, ptr %12, i32 0, i32 0
  %86 = load <2 x float>, ptr %85, align 4
  %87 = call <2 x float> @_ZL7HMM_Div8HMM_Vec2f(<2 x float> %86, float noundef %84)
  %88 = getelementptr inbounds %union.HMM_Vec2, ptr %11, i32 0, i32 0
  store <2 x float> %87, ptr %88, align 4
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 4, !tbaa !13
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %90, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %93 = getelementptr inbounds %struct.anon, ptr %11, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !12
  store float %94, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %95 = load float, ptr %13, align 4, !tbaa !9
  %96 = fsub float %95, 5.000000e-01
  store float %96, ptr %14, align 4, !tbaa !9
  %97 = load float, ptr %14, align 4, !tbaa !9
  %98 = fcmp olt float %97, 0xBE80000000000000
  br i1 %98, label %102, label %99

99:                                               ; preds = %83
  %100 = load float, ptr %14, align 4, !tbaa !9
  %101 = fcmp olt float 0x3E80000000000000, %100
  br i1 %101, label %102, label %113

102:                                              ; preds = %99, %83
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !16
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %104, align 4, !tbaa !16
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 46)
  %108 = load float, ptr %13, align 4, !tbaa !9
  %109 = fpext float %108 to double
  %110 = load float, ptr %14, align 4, !tbaa !9
  %111 = fpext float %110 to double
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %109, double noundef %111)
  br label %113

113:                                              ; preds = %102, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %115, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %118 = getelementptr inbounds %struct.anon, ptr %11, i32 0, i32 1
  %119 = load float, ptr %118, align 4, !tbaa !12
  store float %119, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %120 = load float, ptr %15, align 4, !tbaa !9
  %121 = fsub float %120, 1.000000e+00
  store float %121, ptr %16, align 4, !tbaa !9
  %122 = load float, ptr %16, align 4, !tbaa !9
  %123 = fcmp olt float %122, 0xBE80000000000000
  br i1 %123, label %127, label %124

124:                                              ; preds = %113
  %125 = load float, ptr %16, align 4, !tbaa !9
  %126 = fcmp olt float 0x3E80000000000000, %125
  br i1 %126, label %127, label %138

127:                                              ; preds = %124, %113
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !16
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %129, align 4, !tbaa !16
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 47)
  %133 = load float, ptr %15, align 4, !tbaa !9
  %134 = fpext float %133 to double
  %135 = load float, ptr %16, align 4, !tbaa !9
  %136 = fpext float %135 to double
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %134, double noundef %136)
  br label %138

138:                                              ; preds = %127, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !11
  %139 = load float, ptr %4, align 4, !tbaa !9
  %140 = getelementptr inbounds %union.HMM_Vec2, ptr %18, i32 0, i32 0
  %141 = load <2 x float>, ptr %140, align 4
  %142 = call <2 x float> @_Zdv8HMM_Vec2f(<2 x float> %141, float noundef %139)
  %143 = getelementptr inbounds %union.HMM_Vec2, ptr %17, i32 0, i32 0
  store <2 x float> %142, ptr %143, align 4
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %148 = getelementptr inbounds %struct.anon, ptr %17, i32 0, i32 0
  %149 = load float, ptr %148, align 4, !tbaa !12
  store float %149, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %150 = load float, ptr %19, align 4, !tbaa !9
  %151 = fsub float %150, 5.000000e-01
  store float %151, ptr %20, align 4, !tbaa !9
  %152 = load float, ptr %20, align 4, !tbaa !9
  %153 = fcmp olt float %152, 0xBE80000000000000
  br i1 %153, label %157, label %154

154:                                              ; preds = %138
  %155 = load float, ptr %20, align 4, !tbaa !9
  %156 = fcmp olt float 0x3E80000000000000, %155
  br i1 %156, label %157, label %168

157:                                              ; preds = %154, %138
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 4, !tbaa !16
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %159, align 4, !tbaa !16
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 53)
  %163 = load float, ptr %19, align 4, !tbaa !9
  %164 = fpext float %163 to double
  %165 = load float, ptr %20, align 4, !tbaa !9
  %166 = fpext float %165 to double
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %164, double noundef %166)
  br label %168

168:                                              ; preds = %157, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !13
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %170, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %173 = getelementptr inbounds %struct.anon, ptr %17, i32 0, i32 1
  %174 = load float, ptr %173, align 4, !tbaa !12
  store float %174, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %175 = load float, ptr %21, align 4, !tbaa !9
  %176 = fsub float %175, 1.000000e+00
  store float %176, ptr %22, align 4, !tbaa !9
  %177 = load float, ptr %22, align 4, !tbaa !9
  %178 = fcmp olt float %177, 0xBE80000000000000
  br i1 %178, label %182, label %179

179:                                              ; preds = %168
  %180 = load float, ptr %22, align 4, !tbaa !9
  %181 = fcmp olt float 0x3E80000000000000, %180
  br i1 %181, label %182, label %193

182:                                              ; preds = %179, %168
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 4, !tbaa !16
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %184, align 4, !tbaa !16
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 54)
  %188 = load float, ptr %21, align 4, !tbaa !9
  %189 = fpext float %188 to double
  %190 = load float, ptr %22, align 4, !tbaa !9
  %191 = fpext float %190 to double
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %189, double noundef %191)
  br label %193

193:                                              ; preds = %182, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %194 = load float, ptr %4, align 4, !tbaa !9
  %195 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZdVR8HMM_Vec2f(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %194)
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 4, !tbaa !13
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %197, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %200 = getelementptr inbounds %struct.anon, ptr %3, i32 0, i32 0
  %201 = load float, ptr %200, align 4, !tbaa !12
  store float %201, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %202 = load float, ptr %23, align 4, !tbaa !9
  %203 = fsub float %202, 5.000000e-01
  store float %203, ptr %24, align 4, !tbaa !9
  %204 = load float, ptr %24, align 4, !tbaa !9
  %205 = fcmp olt float %204, 0xBE80000000000000
  br i1 %205, label %209, label %206

206:                                              ; preds = %193
  %207 = load float, ptr %24, align 4, !tbaa !9
  %208 = fcmp olt float 0x3E80000000000000, %207
  br i1 %208, label %209, label %220

209:                                              ; preds = %206, %193
  %210 = load ptr, ptr %2, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %210, i32 0, i32 1
  %212 = load i32, ptr %211, align 4, !tbaa !16
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %211, align 4, !tbaa !16
  %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 58)
  %215 = load float, ptr %23, align 4, !tbaa !9
  %216 = fpext float %215 to double
  %217 = load float, ptr %24, align 4, !tbaa !9
  %218 = fpext float %217 to double
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %216, double noundef %218)
  br label %220

220:                                              ; preds = %209, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %221 = load ptr, ptr %2, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %221, i32 0, i32 0
  %223 = load i32, ptr %222, align 4, !tbaa !13
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %222, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %225 = getelementptr inbounds %struct.anon, ptr %3, i32 0, i32 1
  %226 = load float, ptr %225, align 4, !tbaa !12
  store float %226, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %227 = load float, ptr %25, align 4, !tbaa !9
  %228 = fsub float %227, 1.000000e+00
  store float %228, ptr %26, align 4, !tbaa !9
  %229 = load float, ptr %26, align 4, !tbaa !9
  %230 = fcmp olt float %229, 0xBE80000000000000
  br i1 %230, label %234, label %231

231:                                              ; preds = %220
  %232 = load float, ptr %26, align 4, !tbaa !9
  %233 = fcmp olt float 0x3E80000000000000, %232
  br i1 %233, label %234, label %245

234:                                              ; preds = %231, %220
  %235 = load ptr, ptr %2, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %235, i32 0, i32 1
  %237 = load i32, ptr %236, align 4, !tbaa !16
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %236, align 4, !tbaa !16
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 59)
  %240 = load float, ptr %25, align 4, !tbaa !9
  %241 = fpext float %240 to double
  %242 = load float, ptr %26, align 4, !tbaa !9
  %243 = fpext float %242 to double
  %244 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %241, double noundef %243)
  br label %245

245:                                              ; preds = %234, %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, 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> @_ZL10HMM_DivV2F8HMM_Vec2f(<2 x float>, float noundef) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZdVR8HMM_Vec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS21hmt_testresult_struct", !15, i64 0, !15, i64 4}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, 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 @_Z29_hmt_test_Division_Vec2ScalarP21hmt_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> @_ZL10HMM_DivV2F8HMM_Vec2f(<2 x float> %3, float noundef 2.000000e+00)
  %5 = load i32, ptr %0, align 4, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr %0, align 4, !tbaa !5
  %.sroa.059.0.vec.extract = extractelement <2 x float> %4, i64 0
  %7 = fadd float %.sroa.059.0.vec.extract, -5.000000e-01
  %8 = tail call float @llvm.fabs.f32(float %7)
  %or.cond = fcmp ogt float %8, 0x3E80000000000000
  br i1 %or.cond, label %9, label %17

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

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

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

30:                                               ; preds = %17, %22
  %31 = tail call <2 x float> @_ZL7HMM_Div8HMM_Vec2f(<2 x float> %3, float noundef 2.000000e+00)
  %32 = load i32, ptr %0, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %0, align 4, !tbaa !5
  %.sroa.047.0.vec.extract = extractelement <2 x float> %31, i64 0
  %34 = fadd float %.sroa.047.0.vec.extract, -5.000000e-01
  %35 = tail call float @llvm.fabs.f32(float %34)
  %or.cond5 = fcmp ogt float %35, 0x3E80000000000000
  br i1 %or.cond5, label %36, label %44

36:                                               ; preds = %30
  %37 = getelementptr inbounds i8, ptr %0, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !10
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !10
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 46)
  %41 = fpext float %.sroa.047.0.vec.extract to double
  %42 = fpext float %34 to double
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %41, double noundef %42)
  %.pre80 = load i32, ptr %0, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %30, %36
  %45 = phi i32 [ %33, %30 ], [ %.pre80, %36 ]
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %0, align 4, !tbaa !5
  %.sroa.047.4.vec.extract = extractelement <2 x float> %31, i64 1
  %47 = fadd float %.sroa.047.4.vec.extract, -1.000000e+00
  %48 = tail call float @llvm.fabs.f32(float %47)
  %or.cond7 = fcmp ogt float %48, 0x3E80000000000000
  br i1 %or.cond7, label %49, label %57

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

57:                                               ; preds = %44, %49
  %58 = tail call <2 x float> @_Zdv8HMM_Vec2f(<2 x float> %3, float noundef 2.000000e+00)
  %59 = load i32, ptr %0, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %0, align 4, !tbaa !5
  %.sroa.035.0.vec.extract = extractelement <2 x float> %58, i64 0
  %61 = fadd float %.sroa.035.0.vec.extract, -5.000000e-01
  %62 = tail call float @llvm.fabs.f32(float %61)
  %or.cond9 = fcmp ogt float %62, 0x3E80000000000000
  br i1 %or.cond9, label %63, label %71

63:                                               ; preds = %57
  %64 = getelementptr inbounds i8, ptr %0, i64 4
  %65 = load i32, ptr %64, align 4, !tbaa !10
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !10
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 53)
  %68 = fpext float %.sroa.035.0.vec.extract to double
  %69 = fpext float %61 to double
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %68, double noundef %69)
  %.pre81 = load i32, ptr %0, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %57, %63
  %72 = phi i32 [ %60, %57 ], [ %.pre81, %63 ]
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %0, align 4, !tbaa !5
  %.sroa.035.4.vec.extract = extractelement <2 x float> %58, i64 1
  %74 = fadd float %.sroa.035.4.vec.extract, -1.000000e+00
  %75 = tail call float @llvm.fabs.f32(float %74)
  %or.cond11 = fcmp ogt float %75, 0x3E80000000000000
  br i1 %or.cond11, label %76, label %84

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

84:                                               ; preds = %71, %76
  %85 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZdVR8HMM_Vec2f(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 2.000000e+00)
  %86 = load i32, ptr %0, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %0, align 4, !tbaa !5
  %88 = load float, ptr %2, align 8, !tbaa !11
  %89 = fadd float %88, -5.000000e-01
  %90 = call float @llvm.fabs.f32(float %89)
  %or.cond13 = fcmp ogt float %90, 0x3E80000000000000
  br i1 %or.cond13, label %91, label %99

91:                                               ; preds = %84
  %92 = getelementptr inbounds i8, ptr %0, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !10
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %92, align 4, !tbaa !10
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 58)
  %96 = fpext float %88 to double
  %97 = fpext float %89 to double
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %96, double noundef %97)
  %.pre82 = load i32, ptr %0, align 4, !tbaa !5
  br label %99

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZdVR8HMM_Vec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) 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