; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z26_hmt_test_VectorOps_LerpV4P21hmt_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_Vec4 = type { <4 x float> }
%struct.hmt_testresult_struct = type { i32, i32 }
%struct.anon.10 = type { %union.anon, float }
%union.anon = type { %union.HMM_Vec3 }
%union.HMM_Vec3 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, float }
%struct.anon.11 = type { float, 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: 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 { double, double } @_ZL6HMM_V4ffff(float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26_hmt_test_VectorOps_LerpV4P21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Vec4, align 16
  %4 = alloca %union.HMM_Vec4, align 16
  %5 = alloca %union.HMM_Vec4, align 16
  %6 = alloca %union.HMM_Vec4, align 16
  %7 = alloca %union.HMM_Vec4, align 16
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca %union.HMM_Vec4, align 16
  %17 = alloca %union.HMM_Vec4, align 16
  %18 = alloca %union.HMM_Vec4, align 16
  %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 16, ptr %3) #6
  %27 = call { double, double } @_ZL6HMM_V4ffff(float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %28 = getelementptr inbounds %union.HMM_Vec4, ptr %3, i32 0, i32 0
  %29 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %30 = extractvalue { double, double } %27, 0
  store double %30, ptr %29, align 16
  %31 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %32 = extractvalue { double, double } %27, 1
  store double %32, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  %33 = call { double, double } @_ZL6HMM_V4ffff(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %34 = getelementptr inbounds %union.HMM_Vec4, ptr %4, i32 0, i32 0
  %35 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %36 = extractvalue { double, double } %33, 0
  store double %36, ptr %35, align 16
  %37 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %38 = extractvalue { double, double } %33, 1
  store double %38, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 %3, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !9
  %39 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %40 = load double, ptr %39, align 16
  %41 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %42 = load double, ptr %41, align 8
  %43 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %44 = load double, ptr %43, align 16
  %45 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %46 = load double, ptr %45, align 8
  %47 = call { double, double } @_ZL10HMM_LerpV48HMM_Vec4fS_(double %40, double %42, float noundef 5.000000e-01, double %44, double %46)
  %48 = getelementptr inbounds %union.HMM_Vec4, ptr %5, i32 0, i32 0
  %49 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %50 = extractvalue { double, double } %47, 0
  store double %50, ptr %49, align 16
  %51 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %52 = extractvalue { double, double } %47, 1
  store double %52, ptr %51, align 8
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %54, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %57 = getelementptr inbounds %struct.anon.10, ptr %5, i32 0, i32 0
  %58 = getelementptr inbounds %struct.anon.11, ptr %57, i32 0, i32 0
  %59 = load float, ptr %58, align 16, !tbaa !10
  store float %59, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %60 = load float, ptr %8, align 4, !tbaa !14
  %61 = fsub float %60, 5.000000e-01
  store float %61, ptr %9, align 4, !tbaa !14
  %62 = load float, ptr %9, align 4, !tbaa !14
  %63 = fcmp olt float %62, 0xBE80000000000000
  br i1 %63, label %67, label %64

64:                                               ; preds = %1
  %65 = load float, ptr %9, align 4, !tbaa !14
  %66 = fcmp olt float 0x3E80000000000000, %65
  br i1 %66, label %67, label %78

67:                                               ; preds = %64, %1
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !16
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 4, !tbaa !16
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 229)
  %73 = load float, ptr %8, align 4, !tbaa !14
  %74 = fpext float %73 to double
  %75 = load float, ptr %9, align 4, !tbaa !14
  %76 = fpext float %75 to double
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %74, double noundef %76)
  br label %78

78:                                               ; preds = %67, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %80, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %83 = getelementptr inbounds %struct.anon.10, ptr %5, i32 0, i32 0
  %84 = getelementptr inbounds %struct.anon.11, ptr %83, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !10
  store float %85, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %86 = load float, ptr %10, align 4, !tbaa !14
  %87 = fsub float %86, 1.000000e+00
  store float %87, ptr %11, align 4, !tbaa !14
  %88 = load float, ptr %11, align 4, !tbaa !14
  %89 = fcmp olt float %88, 0xBE80000000000000
  br i1 %89, label %93, label %90

90:                                               ; preds = %78
  %91 = load float, ptr %11, align 4, !tbaa !14
  %92 = fcmp olt float 0x3E80000000000000, %91
  br i1 %92, label %93, label %104

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

104:                                              ; preds = %93, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !11
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %106, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %109 = getelementptr inbounds %struct.anon.10, ptr %5, i32 0, i32 0
  %110 = getelementptr inbounds %struct.anon.11, ptr %109, i32 0, i32 2
  %111 = load float, ptr %110, align 8, !tbaa !10
  store float %111, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %112 = load float, ptr %12, align 4, !tbaa !14
  %113 = fsub float %112, 5.000000e-01
  store float %113, ptr %13, align 4, !tbaa !14
  %114 = load float, ptr %13, align 4, !tbaa !14
  %115 = fcmp olt float %114, 0xBE80000000000000
  br i1 %115, label %119, label %116

116:                                              ; preds = %104
  %117 = load float, ptr %13, align 4, !tbaa !14
  %118 = fcmp olt float 0x3E80000000000000, %117
  br i1 %118, label %119, label %130

119:                                              ; preds = %116, %104
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 4, !tbaa !16
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %121, align 4, !tbaa !16
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 231)
  %125 = load float, ptr %12, align 4, !tbaa !14
  %126 = fpext float %125 to double
  %127 = load float, ptr %13, align 4, !tbaa !14
  %128 = fpext float %127 to double
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %126, double noundef %128)
  br label %130

130:                                              ; preds = %119, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !11
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %132, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %135 = getelementptr inbounds %struct.anon.10, ptr %5, i32 0, i32 1
  %136 = load float, ptr %135, align 4, !tbaa !10
  store float %136, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %137 = load float, ptr %14, align 4, !tbaa !14
  %138 = fsub float %137, 1.000000e+00
  store float %138, ptr %15, align 4, !tbaa !14
  %139 = load float, ptr %15, align 4, !tbaa !14
  %140 = fcmp olt float %139, 0xBE80000000000000
  br i1 %140, label %144, label %141

141:                                              ; preds = %130
  %142 = load float, ptr %15, align 4, !tbaa !14
  %143 = fcmp olt float 0x3E80000000000000, %142
  br i1 %143, label %144, label %155

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

155:                                              ; preds = %144, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %3, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !9
  %156 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %157 = load double, ptr %156, align 16
  %158 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %159 = load double, ptr %158, align 8
  %160 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %161 = load double, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %163 = load double, ptr %162, align 8
  %164 = call { double, double } @_ZL8HMM_Lerp8HMM_Vec4fS_(double %157, double %159, float noundef 5.000000e-01, double %161, double %163)
  %165 = getelementptr inbounds %union.HMM_Vec4, ptr %16, i32 0, i32 0
  %166 = getelementptr inbounds { double, double }, ptr %165, i32 0, i32 0
  %167 = extractvalue { double, double } %164, 0
  store double %167, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %165, i32 0, i32 1
  %169 = extractvalue { double, double } %164, 1
  store double %169, ptr %168, align 8
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !11
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %171, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %174 = getelementptr inbounds %struct.anon.10, ptr %16, i32 0, i32 0
  %175 = getelementptr inbounds %struct.anon.11, ptr %174, i32 0, i32 0
  %176 = load float, ptr %175, align 16, !tbaa !10
  store float %176, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %177 = load float, ptr %19, align 4, !tbaa !14
  %178 = fsub float %177, 5.000000e-01
  store float %178, ptr %20, align 4, !tbaa !14
  %179 = load float, ptr %20, align 4, !tbaa !14
  %180 = fcmp olt float %179, 0xBE80000000000000
  br i1 %180, label %184, label %181

181:                                              ; preds = %155
  %182 = load float, ptr %20, align 4, !tbaa !14
  %183 = fcmp olt float 0x3E80000000000000, %182
  br i1 %183, label %184, label %195

184:                                              ; preds = %181, %155
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !16
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %186, align 4, !tbaa !16
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 237)
  %190 = load float, ptr %19, align 4, !tbaa !14
  %191 = fpext float %190 to double
  %192 = load float, ptr %20, align 4, !tbaa !14
  %193 = fpext float %192 to double
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %191, double noundef %193)
  br label %195

195:                                              ; preds = %184, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %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 !11
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %197, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %200 = getelementptr inbounds %struct.anon.10, ptr %16, i32 0, i32 0
  %201 = getelementptr inbounds %struct.anon.11, ptr %200, i32 0, i32 1
  %202 = load float, ptr %201, align 4, !tbaa !10
  store float %202, ptr %21, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %203 = load float, ptr %21, align 4, !tbaa !14
  %204 = fsub float %203, 1.000000e+00
  store float %204, ptr %22, align 4, !tbaa !14
  %205 = load float, ptr %22, align 4, !tbaa !14
  %206 = fcmp olt float %205, 0xBE80000000000000
  br i1 %206, label %210, label %207

207:                                              ; preds = %195
  %208 = load float, ptr %22, align 4, !tbaa !14
  %209 = fcmp olt float 0x3E80000000000000, %208
  br i1 %209, label %210, label %221

210:                                              ; preds = %207, %195
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %211, i32 0, i32 1
  %213 = load i32, ptr %212, align 4, !tbaa !16
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %212, align 4, !tbaa !16
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 238)
  %216 = load float, ptr %21, align 4, !tbaa !14
  %217 = fpext float %216 to double
  %218 = load float, ptr %22, align 4, !tbaa !14
  %219 = fpext float %218 to double
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %217, double noundef %219)
  br label %221

221:                                              ; preds = %210, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %222, i32 0, i32 0
  %224 = load i32, ptr %223, align 4, !tbaa !11
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %223, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %226 = getelementptr inbounds %struct.anon.10, ptr %16, i32 0, i32 0
  %227 = getelementptr inbounds %struct.anon.11, ptr %226, i32 0, i32 2
  %228 = load float, ptr %227, align 8, !tbaa !10
  store float %228, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %229 = load float, ptr %23, align 4, !tbaa !14
  %230 = fsub float %229, 5.000000e-01
  store float %230, ptr %24, align 4, !tbaa !14
  %231 = load float, ptr %24, align 4, !tbaa !14
  %232 = fcmp olt float %231, 0xBE80000000000000
  br i1 %232, label %236, label %233

233:                                              ; preds = %221
  %234 = load float, ptr %24, align 4, !tbaa !14
  %235 = fcmp olt float 0x3E80000000000000, %234
  br i1 %235, label %236, label %247

236:                                              ; preds = %233, %221
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %237, i32 0, i32 1
  %239 = load i32, ptr %238, align 4, !tbaa !16
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %238, align 4, !tbaa !16
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 239)
  %242 = load float, ptr %23, align 4, !tbaa !14
  %243 = fpext float %242 to double
  %244 = load float, ptr %24, align 4, !tbaa !14
  %245 = fpext float %244 to double
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %243, double noundef %245)
  br label %247

247:                                              ; preds = %236, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %248 = load ptr, ptr %2, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %248, i32 0, i32 0
  %250 = load i32, ptr %249, align 4, !tbaa !11
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %249, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %252 = getelementptr inbounds %struct.anon.10, ptr %16, i32 0, i32 1
  %253 = load float, ptr %252, align 4, !tbaa !10
  store float %253, ptr %25, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %254 = load float, ptr %25, align 4, !tbaa !14
  %255 = fsub float %254, 1.000000e+00
  store float %255, ptr %26, align 4, !tbaa !14
  %256 = load float, ptr %26, align 4, !tbaa !14
  %257 = fcmp olt float %256, 0xBE80000000000000
  br i1 %257, label %261, label %258

258:                                              ; preds = %247
  %259 = load float, ptr %26, align 4, !tbaa !14
  %260 = fcmp olt float 0x3E80000000000000, %259
  br i1 %260, label %261, label %272

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

272:                                              ; preds = %261, %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL10HMM_LerpV48HMM_Vec4fS_(double, double, float noundef, double, double) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL8HMM_Lerp8HMM_Vec4fS_(double, double, float noundef, double, double) #5

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"="128" "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"="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 #5 = { 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 #6 = { nounwind }

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

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

@.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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL6HMM_V4ffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26_hmt_test_VectorOps_LerpV4P21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = tail call { double, double } @_ZL6HMM_V4ffff(float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %3 = extractvalue { double, double } %2, 0
  %4 = extractvalue { double, double } %2, 1
  %5 = tail call { double, double } @_ZL6HMM_V4ffff(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %6 = extractvalue { double, double } %5, 0
  %7 = extractvalue { double, double } %5, 1
  %8 = tail call { double, double } @_ZL10HMM_LerpV48HMM_Vec4fS_(double %3, double %4, float noundef 5.000000e-01, double %6, double %7)
  %9 = extractvalue { double, double } %8, 0
  %10 = extractvalue { double, double } %8, 1
  %11 = load i32, ptr %0, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %0, align 4, !tbaa !5
  %13 = bitcast double %9 to i64
  %14 = trunc i64 %13 to i32
  %15 = bitcast i32 %14 to float
  %16 = fadd float %15, -5.000000e-01
  %17 = tail call float @llvm.fabs.f32(float %16)
  %or.cond = fcmp ogt float %17, 0x3E80000000000000
  %18 = lshr i64 %13, 32
  %19 = trunc nuw i64 %18 to i32
  %20 = bitcast i32 %19 to float
  %21 = bitcast double %10 to i64
  %22 = trunc i64 %21 to i32
  %23 = bitcast i32 %22 to float
  %24 = lshr i64 %21, 32
  %25 = trunc nuw i64 %24 to i32
  %26 = bitcast i32 %25 to float
  br i1 %or.cond, label %27, label %35

27:                                               ; preds = %1
  %28 = getelementptr inbounds i8, ptr %0, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !10
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !10
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 229)
  %32 = fpext float %15 to double
  %33 = fpext float %16 to double
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %32, double noundef %33)
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %1, %27
  %36 = phi i32 [ %12, %1 ], [ %.pre, %27 ]
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %0, align 4, !tbaa !5
  %38 = fadd float %20, -1.000000e+00
  %39 = tail call float @llvm.fabs.f32(float %38)
  %or.cond3 = fcmp ogt float %39, 0x3E80000000000000
  br i1 %or.cond3, label %40, label %48

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %0, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !10
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !10
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 230)
  %45 = fpext float %20 to double
  %46 = fpext float %38 to double
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %45, double noundef %46)
  %.pre90 = load i32, ptr %0, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %35, %40
  %49 = phi i32 [ %37, %35 ], [ %.pre90, %40 ]
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %0, align 4, !tbaa !5
  %51 = fadd float %23, -5.000000e-01
  %52 = tail call float @llvm.fabs.f32(float %51)
  %or.cond5 = fcmp ogt float %52, 0x3E80000000000000
  br i1 %or.cond5, label %53, label %61

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %0, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !10
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %54, align 4, !tbaa !10
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 231)
  %58 = fpext float %23 to double
  %59 = fpext float %51 to double
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %58, double noundef %59)
  %.pre91 = load i32, ptr %0, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %48, %53
  %62 = phi i32 [ %50, %48 ], [ %.pre91, %53 ]
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %0, align 4, !tbaa !5
  %64 = fadd float %26, -1.000000e+00
  %65 = tail call float @llvm.fabs.f32(float %64)
  %or.cond7 = fcmp ogt float %65, 0x3E80000000000000
  br i1 %or.cond7, label %66, label %74

66:                                               ; preds = %61
  %67 = getelementptr inbounds i8, ptr %0, i64 4
  %68 = load i32, ptr %67, align 4, !tbaa !10
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !10
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 232)
  %71 = fpext float %26 to double
  %72 = fpext float %64 to double
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %71, double noundef %72)
  br label %74

74:                                               ; preds = %61, %66
  %75 = tail call { double, double } @_ZL8HMM_Lerp8HMM_Vec4fS_(double %3, double %4, float noundef 5.000000e-01, double %6, double %7)
  %76 = extractvalue { double, double } %75, 0
  %77 = extractvalue { double, double } %75, 1
  %78 = load i32, ptr %0, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %0, align 4, !tbaa !5
  %80 = bitcast double %76 to i64
  %81 = trunc i64 %80 to i32
  %82 = bitcast i32 %81 to float
  %83 = fadd float %82, -5.000000e-01
  %84 = tail call float @llvm.fabs.f32(float %83)
  %or.cond9 = fcmp ogt float %84, 0x3E80000000000000
  %85 = lshr i64 %80, 32
  %86 = trunc nuw i64 %85 to i32
  %87 = bitcast i32 %86 to float
  %88 = bitcast double %77 to i64
  %89 = trunc i64 %88 to i32
  %90 = bitcast i32 %89 to float
  %91 = lshr i64 %88, 32
  %92 = trunc nuw i64 %91 to i32
  %93 = bitcast i32 %92 to float
  br i1 %or.cond9, label %94, label %102

94:                                               ; preds = %74
  %95 = getelementptr inbounds i8, ptr %0, i64 4
  %96 = load i32, ptr %95, align 4, !tbaa !10
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %95, align 4, !tbaa !10
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 237)
  %99 = fpext float %82 to double
  %100 = fpext float %83 to double
  %101 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %99, double noundef %100)
  %.pre92 = load i32, ptr %0, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %74, %94
  %103 = phi i32 [ %79, %74 ], [ %.pre92, %94 ]
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %0, align 4, !tbaa !5
  %105 = fadd float %87, -1.000000e+00
  %106 = tail call float @llvm.fabs.f32(float %105)
  %or.cond11 = fcmp ogt float %106, 0x3E80000000000000
  br i1 %or.cond11, label %107, label %115

107:                                              ; preds = %102
  %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 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 238)
  %112 = fpext float %87 to double
  %113 = fpext float %105 to double
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %112, double noundef %113)
  %.pre93 = load i32, ptr %0, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %102, %107
  %116 = phi i32 [ %104, %102 ], [ %.pre93, %107 ]
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %0, align 4, !tbaa !5
  %118 = fadd float %90, -5.000000e-01
  %119 = tail call float @llvm.fabs.f32(float %118)
  %or.cond13 = fcmp ogt float %119, 0x3E80000000000000
  br i1 %or.cond13, label %120, label %128

120:                                              ; preds = %115
  %121 = getelementptr inbounds i8, ptr %0, i64 4
  %122 = load i32, ptr %121, align 4, !tbaa !10
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %121, align 4, !tbaa !10
  %124 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 239)
  %125 = fpext float %90 to double
  %126 = fpext float %118 to double
  %127 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %125, double noundef %126)
  %.pre94 = load i32, ptr %0, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %115, %120
  %129 = phi i32 [ %117, %115 ], [ %.pre94, %120 ]
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %0, align 4, !tbaa !5
  %131 = fadd float %93, -1.000000e+00
  %132 = tail call float @llvm.fabs.f32(float %131)
  %or.cond15 = fcmp ogt float %132, 0x3E80000000000000
  br i1 %or.cond15, label %133, label %141

133:                                              ; preds = %128
  %134 = getelementptr inbounds i8, ptr %0, i64 4
  %135 = load i32, ptr %134, align 4, !tbaa !10
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %134, align 4, !tbaa !10
  %137 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 240)
  %138 = fpext float %93 to double
  %139 = fpext float %131 to double
  %140 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %138, double noundef %139)
  br label %141

141:                                              ; preds = %128, %133
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL10HMM_LerpV48HMM_Vec4fS_(double, double, float noundef, double, double) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL8HMM_Lerp8HMM_Vec4fS_(double, double, float noundef, double, double) local_unnamed_addr #3

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

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="128" "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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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) }

!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}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass