; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z26_hmt_test_VectorOps_LerpV3P21hmt_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_Vec3 = type { %struct.anon.3 }
%struct.anon.3 = type { float, 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>, float } @_ZL6HMM_V3fff(float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26_hmt_test_VectorOps_LerpV3P21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Vec3, align 4
  %4 = alloca { <2 x float>, float }, align 8
  %5 = alloca %union.HMM_Vec3, align 4
  %6 = alloca { <2 x float>, float }, align 8
  %7 = alloca %union.HMM_Vec3, align 4
  %8 = alloca %union.HMM_Vec3, align 4
  %9 = alloca %union.HMM_Vec3, align 4
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca { <2 x float>, float }, align 4
  %12 = alloca { <2 x float>, float }, align 8
  %13 = alloca float, align 4
  %14 = alloca float, 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_Vec3, align 4
  %20 = alloca %union.HMM_Vec3, align 4
  %21 = alloca %union.HMM_Vec3, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca float, align 4
  %26 = alloca float, 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 12, ptr %3) #6
  %31 = call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %32 = getelementptr inbounds %union.HMM_Vec3, ptr %3, i32 0, i32 0
  store { <2 x float>, float } %31, ptr %4, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %4, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  %33 = call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %34 = getelementptr inbounds %union.HMM_Vec3, ptr %5, i32 0, i32 0
  store { <2 x float>, float } %33, ptr %6, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %6, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %3, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %5, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %8, i64 12, i1 false)
  %35 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  %36 = load <2 x float>, ptr %35, align 4
  %37 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  %38 = load float, ptr %37, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %9, i64 12, i1 false)
  %39 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 0
  %40 = load <2 x float>, ptr %39, align 4
  %41 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 1
  %42 = load float, ptr %41, align 4
  %43 = call { <2 x float>, float } @_ZL10HMM_LerpV38HMM_Vec3fS_(<2 x float> %36, float %38, float noundef 5.000000e-01, <2 x float> %40, float %42)
  %44 = getelementptr inbounds %union.HMM_Vec3, ptr %7, i32 0, i32 0
  store { <2 x float>, float } %43, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 8 %12, i64 12, i1 false)
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %49 = getelementptr inbounds %struct.anon.3, ptr %7, i32 0, i32 0
  %50 = load float, ptr %49, align 4, !tbaa !10
  store float %50, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %51 = load float, ptr %13, align 4, !tbaa !14
  %52 = fsub float %51, 5.000000e-01
  store float %52, ptr %14, align 4, !tbaa !14
  %53 = load float, ptr %14, align 4, !tbaa !14
  %54 = fcmp olt float %53, 0xBE80000000000000
  br i1 %54, label %58, label %55

55:                                               ; preds = %1
  %56 = load float, ptr %14, align 4, !tbaa !14
  %57 = fcmp olt float 0x3E80000000000000, %56
  br i1 %57, label %58, label %69

58:                                               ; preds = %55, %1
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !16
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !16
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 208)
  %64 = load float, ptr %13, align 4, !tbaa !14
  %65 = fpext float %64 to double
  %66 = load float, ptr %14, align 4, !tbaa !14
  %67 = fpext float %66 to double
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %65, double noundef %67)
  br label %69

69:                                               ; preds = %58, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !11
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %71, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %74 = getelementptr inbounds %struct.anon.3, ptr %7, i32 0, i32 1
  %75 = load float, ptr %74, align 4, !tbaa !10
  store float %75, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %76 = load float, ptr %15, align 4, !tbaa !14
  %77 = fsub float %76, 1.000000e+00
  store float %77, ptr %16, align 4, !tbaa !14
  %78 = load float, ptr %16, align 4, !tbaa !14
  %79 = fcmp olt float %78, 0xBE80000000000000
  br i1 %79, label %83, label %80

80:                                               ; preds = %69
  %81 = load float, ptr %16, align 4, !tbaa !14
  %82 = fcmp olt float 0x3E80000000000000, %81
  br i1 %82, label %83, label %94

83:                                               ; preds = %80, %69
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !16
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 209)
  %89 = load float, ptr %15, align 4, !tbaa !14
  %90 = fpext float %89 to double
  %91 = load float, ptr %16, align 4, !tbaa !14
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %90, double noundef %92)
  br label %94

94:                                               ; preds = %83, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %96, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %99 = getelementptr inbounds %struct.anon.3, ptr %7, i32 0, i32 2
  %100 = load float, ptr %99, align 4, !tbaa !10
  store float %100, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %101 = load float, ptr %17, align 4, !tbaa !14
  %102 = fsub float %101, 5.000000e-01
  store float %102, ptr %18, align 4, !tbaa !14
  %103 = load float, ptr %18, align 4, !tbaa !14
  %104 = fcmp olt float %103, 0xBE80000000000000
  br i1 %104, label %108, label %105

105:                                              ; preds = %94
  %106 = load float, ptr %18, align 4, !tbaa !14
  %107 = fcmp olt float 0x3E80000000000000, %106
  br i1 %107, label %108, label %119

108:                                              ; preds = %105, %94
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 4, !tbaa !16
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %110, align 4, !tbaa !16
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 210)
  %114 = load float, ptr %17, align 4, !tbaa !14
  %115 = fpext float %114 to double
  %116 = load float, ptr %18, align 4, !tbaa !14
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %115, double noundef %117)
  br label %119

119:                                              ; preds = %108, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %3, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %5, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %20, i64 12, i1 false)
  %120 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %121 = load <2 x float>, ptr %120, align 4
  %122 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %123 = load float, ptr %122, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %21, i64 12, i1 false)
  %124 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 0
  %125 = load <2 x float>, ptr %124, align 4
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  %128 = call { <2 x float>, float } @_ZL8HMM_Lerp8HMM_Vec3fS_(<2 x float> %121, float %123, float noundef 5.000000e-01, <2 x float> %125, float %127)
  %129 = getelementptr inbounds %union.HMM_Vec3, ptr %19, i32 0, i32 0
  store { <2 x float>, float } %128, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %129, ptr align 8 %24, i64 12, i1 false)
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %131, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %134 = getelementptr inbounds %struct.anon.3, ptr %19, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !10
  store float %135, ptr %25, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %136 = load float, ptr %25, align 4, !tbaa !14
  %137 = fsub float %136, 5.000000e-01
  store float %137, ptr %26, align 4, !tbaa !14
  %138 = load float, ptr %26, align 4, !tbaa !14
  %139 = fcmp olt float %138, 0xBE80000000000000
  br i1 %139, label %143, label %140

140:                                              ; preds = %119
  %141 = load float, ptr %26, align 4, !tbaa !14
  %142 = fcmp olt float 0x3E80000000000000, %141
  br i1 %142, label %143, label %154

143:                                              ; preds = %140, %119
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !16
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !16
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 215)
  %149 = load float, ptr %25, align 4, !tbaa !14
  %150 = fpext float %149 to double
  %151 = load float, ptr %26, align 4, !tbaa !14
  %152 = fpext float %151 to double
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %150, double noundef %152)
  br label %154

154:                                              ; preds = %143, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 4, !tbaa !11
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %156, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %159 = getelementptr inbounds %struct.anon.3, ptr %19, i32 0, i32 1
  %160 = load float, ptr %159, align 4, !tbaa !10
  store float %160, ptr %27, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %161 = load float, ptr %27, align 4, !tbaa !14
  %162 = fsub float %161, 1.000000e+00
  store float %162, ptr %28, align 4, !tbaa !14
  %163 = load float, ptr %28, align 4, !tbaa !14
  %164 = fcmp olt float %163, 0xBE80000000000000
  br i1 %164, label %168, label %165

165:                                              ; preds = %154
  %166 = load float, ptr %28, align 4, !tbaa !14
  %167 = fcmp olt float 0x3E80000000000000, %166
  br i1 %167, label %168, label %179

168:                                              ; preds = %165, %154
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !16
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %170, align 4, !tbaa !16
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 216)
  %174 = load float, ptr %27, align 4, !tbaa !14
  %175 = fpext float %174 to double
  %176 = load float, ptr %28, align 4, !tbaa !14
  %177 = fpext float %176 to double
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %175, double noundef %177)
  br label %179

179:                                              ; preds = %168, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 4, !tbaa !11
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %181, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %184 = getelementptr inbounds %struct.anon.3, ptr %19, i32 0, i32 2
  %185 = load float, ptr %184, align 4, !tbaa !10
  store float %185, ptr %29, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %186 = load float, ptr %29, align 4, !tbaa !14
  %187 = fsub float %186, 5.000000e-01
  store float %187, ptr %30, align 4, !tbaa !14
  %188 = load float, ptr %30, align 4, !tbaa !14
  %189 = fcmp olt float %188, 0xBE80000000000000
  br i1 %189, label %193, label %190

190:                                              ; preds = %179
  %191 = load float, ptr %30, align 4, !tbaa !14
  %192 = fcmp olt float 0x3E80000000000000, %191
  br i1 %192, label %193, label %204

193:                                              ; preds = %190, %179
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !16
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %195, align 4, !tbaa !16
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 217)
  %199 = load float, ptr %29, align 4, !tbaa !14
  %200 = fpext float %199 to double
  %201 = load float, ptr %30, align 4, !tbaa !14
  %202 = fpext float %201 to double
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 5.000000e-01, double noundef %200, double noundef %202)
  br label %204

204:                                              ; preds = %193, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL8HMM_Lerp8HMM_Vec3fS_(<2 x float>, float, float noundef, <2 x float>, float) #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"="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 = { 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 = { 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 #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 12, !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 { <2 x float>, float } @_ZL6HMM_V3fff(float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26_hmt_test_VectorOps_LerpV3P21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = tail call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %.fca.0.extract71 = extractvalue { <2 x float>, float } %2, 0
  %.fca.1.extract72 = extractvalue { <2 x float>, float } %2, 1
  %3 = tail call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %.fca.0.extract64 = extractvalue { <2 x float>, float } %3, 0
  %.fca.1.extract65 = extractvalue { <2 x float>, float } %3, 1
  %4 = tail call { <2 x float>, float } @_ZL10HMM_LerpV38HMM_Vec3fS_(<2 x float> %.fca.0.extract71, float %.fca.1.extract72, float noundef 5.000000e-01, <2 x float> %.fca.0.extract64, float %.fca.1.extract65)
  %.fca.0.extract50 = extractvalue { <2 x float>, float } %4, 0
  %.fca.1.extract51 = extractvalue { <2 x float>, float } %4, 1
  %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.062.0.vec.extract = extractelement <2 x float> %.fca.0.extract50, i64 0
  %7 = fadd float %.sroa.062.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 208)
  %14 = fpext float %.sroa.062.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.062.4.vec.extract = extractelement <2 x float> %.fca.0.extract50, i64 1
  %20 = fadd float %.sroa.062.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 209)
  %27 = fpext float %.sroa.062.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)
  %.pre90 = load i32, ptr %0, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %17, %22
  %31 = phi i32 [ %19, %17 ], [ %.pre90, %22 ]
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %0, align 4, !tbaa !5
  %33 = fadd float %.fca.1.extract51, -5.000000e-01
  %34 = tail call float @llvm.fabs.f32(float %33)
  %or.cond5 = fcmp ogt float %34, 0x3E80000000000000
  br i1 %or.cond5, label %35, label %43

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %0, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !10
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 4, !tbaa !10
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 210)
  %40 = fpext float %.fca.1.extract51 to double
  %41 = fpext float %33 to double
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %40, double noundef %41)
  br label %43

43:                                               ; preds = %30, %35
  %44 = tail call { <2 x float>, float } @_ZL8HMM_Lerp8HMM_Vec3fS_(<2 x float> %.fca.0.extract71, float %.fca.1.extract72, float noundef 5.000000e-01, <2 x float> %.fca.0.extract64, float %.fca.1.extract65)
  %.fca.0.extract = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %44, 1
  %45 = load i32, ptr %0, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %0, align 4, !tbaa !5
  %.sroa.034.0.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 0
  %47 = fadd float %.sroa.034.0.vec.extract, -5.000000e-01
  %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 = %43
  %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 215)
  %54 = fpext float %.sroa.034.0.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 5.000000e-01, double noundef %54, double noundef %55)
  %.pre91 = load i32, ptr %0, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %43, %49
  %58 = phi i32 [ %46, %43 ], [ %.pre91, %49 ]
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %0, align 4, !tbaa !5
  %.sroa.034.4.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 1
  %60 = fadd float %.sroa.034.4.vec.extract, -1.000000e+00
  %61 = tail call float @llvm.fabs.f32(float %60)
  %or.cond9 = fcmp ogt float %61, 0x3E80000000000000
  br i1 %or.cond9, label %62, label %70

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

70:                                               ; preds = %57, %62
  %71 = phi i32 [ %59, %57 ], [ %.pre92, %62 ]
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %0, align 4, !tbaa !5
  %73 = fadd float %.fca.1.extract, -5.000000e-01
  %74 = tail call float @llvm.fabs.f32(float %73)
  %or.cond11 = fcmp ogt float %74, 0x3E80000000000000
  br i1 %or.cond11, label %75, label %83

75:                                               ; preds = %70
  %76 = getelementptr inbounds i8, ptr %0, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !10
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %76, align 4, !tbaa !10
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 217)
  %80 = fpext float %.fca.1.extract to double
  %81 = fpext float %73 to double
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 5.000000e-01, double noundef %80, double noundef %81)
  br label %83

83:                                               ; preds = %70, %75
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL8HMM_Lerp8HMM_Vec3fS_(<2 x float>, float, float noundef, <2 x float>, float) 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"="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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="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) }

!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: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass