; LLVM IR from heroseh/cgm :: cgm (cgm_3d_ray_vs_aabb)

; 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.CgmVec3 = type { %struct.anon.0 }
%struct.anon.0 = type { float, float, float }
%struct.anon.5 = type { float, float, float, float, float, float }
%struct.CgmRay3d = type { %union.CgmVec3, %union.CgmVec3 }

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_min(float noundef, float noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_max(float noundef, float noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @cgm_3d_ray_vs_aabb(ptr noundef %0, float noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %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 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 %union.CgmVec3, align 4
  %27 = alloca %union.CgmVec3, align 4
  %28 = alloca %union.CgmVec3, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store float %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.anon.5, ptr %30, i32 0, i32 0
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.CgmRay3d, ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.anon.0, ptr %34, i32 0, i32 0
  %36 = load float, ptr %35, align 4, !tbaa !11
  %37 = fsub float %32, %36
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.CgmRay3d, ptr %38, i32 0, i32 1
  %40 = getelementptr inbounds %struct.anon.0, ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 4, !tbaa !11
  %42 = fdiv float %37, %41
  store float %42, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.anon.5, ptr %43, i32 0, i32 3
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.CgmRay3d, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.anon.0, ptr %47, i32 0, i32 0
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fsub float %45, %49
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.CgmRay3d, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %struct.anon.0, ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !11
  %55 = fdiv float %50, %54
  store float %55, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %56 = load float, ptr %12, align 4, !tbaa !9
  %57 = load float, ptr %13, align 4, !tbaa !9
  %58 = call float @cgm_min(float noundef %56, float noundef %57)
  store float %58, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %59 = load float, ptr %12, align 4, !tbaa !9
  %60 = load float, ptr %13, align 4, !tbaa !9
  %61 = call float @cgm_max(float noundef %59, float noundef %60)
  store float %61, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.anon.5, ptr %62, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !11
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CgmRay3d, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.anon.0, ptr %66, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = fsub float %64, %68
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.CgmRay3d, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.anon.0, ptr %71, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !11
  %74 = fdiv float %69, %73
  store float %74, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.anon.5, ptr %75, i32 0, i32 4
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.CgmRay3d, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds %struct.anon.0, ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = fsub float %77, %81
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.CgmRay3d, ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds %struct.anon.0, ptr %84, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !11
  %87 = fdiv float %82, %86
  store float %87, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %88 = load float, ptr %16, align 4, !tbaa !9
  %89 = load float, ptr %17, align 4, !tbaa !9
  %90 = call float @cgm_min(float noundef %88, float noundef %89)
  store float %90, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %91 = load float, ptr %16, align 4, !tbaa !9
  %92 = load float, ptr %17, align 4, !tbaa !9
  %93 = call float @cgm_max(float noundef %91, float noundef %92)
  store float %93, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.anon.5, ptr %94, i32 0, i32 2
  %96 = load float, ptr %95, align 4, !tbaa !11
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.CgmRay3d, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %struct.anon.0, ptr %98, i32 0, i32 2
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = fsub float %96, %100
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CgmRay3d, ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds %struct.anon.0, ptr %103, i32 0, i32 2
  %105 = load float, ptr %104, align 4, !tbaa !11
  %106 = fdiv float %101, %105
  store float %106, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.anon.5, ptr %107, i32 0, i32 5
  %109 = load float, ptr %108, align 4, !tbaa !11
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.CgmRay3d, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %struct.anon.0, ptr %111, i32 0, i32 2
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = fsub float %109, %113
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.CgmRay3d, ptr %115, i32 0, i32 1
  %117 = getelementptr inbounds %struct.anon.0, ptr %116, i32 0, i32 2
  %118 = load float, ptr %117, align 4, !tbaa !11
  %119 = fdiv float %114, %118
  store float %119, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %120 = load float, ptr %20, align 4, !tbaa !9
  %121 = load float, ptr %21, align 4, !tbaa !9
  %122 = call float @cgm_min(float noundef %120, float noundef %121)
  store float %122, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %123 = load float, ptr %20, align 4, !tbaa !9
  %124 = load float, ptr %21, align 4, !tbaa !9
  %125 = call float @cgm_max(float noundef %123, float noundef %124)
  store float %125, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %126 = load float, ptr %14, align 4, !tbaa !9
  %127 = load float, ptr %18, align 4, !tbaa !9
  %128 = load float, ptr %22, align 4, !tbaa !9
  %129 = call float @cgm_max(float noundef %127, float noundef %128)
  %130 = call float @cgm_max(float noundef %126, float noundef %129)
  store float %130, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %131 = load float, ptr %15, align 4, !tbaa !9
  %132 = load float, ptr %19, align 4, !tbaa !9
  %133 = load float, ptr %23, align 4, !tbaa !9
  %134 = call float @cgm_min(float noundef %132, float noundef %133)
  %135 = call float @cgm_min(float noundef %131, float noundef %134)
  store float %135, ptr %25, align 4, !tbaa !9
  %136 = load float, ptr %25, align 4, !tbaa !9
  %137 = fcmp ogt float %136, 0.000000e+00
  br i1 %137, label %138, label %207

138:                                              ; preds = %5
  %139 = load float, ptr %25, align 4, !tbaa !9
  %140 = load float, ptr %24, align 4, !tbaa !9
  %141 = fcmp oge float %139, %140
  br i1 %141, label %142, label %207

142:                                              ; preds = %138
  %143 = load float, ptr %24, align 4, !tbaa !9
  %144 = load float, ptr %8, align 4, !tbaa !9
  %145 = fcmp ole float %143, %144
  br i1 %145, label %146, label %207

146:                                              ; preds = %142
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %200

149:                                              ; preds = %146
  %150 = load float, ptr %14, align 4, !tbaa !9
  %151 = load float, ptr %18, align 4, !tbaa !9
  %152 = fcmp ogt float %150, %151
  br i1 %152, label %153, label %168

153:                                              ; preds = %149
  %154 = load float, ptr %14, align 4, !tbaa !9
  %155 = load float, ptr %22, align 4, !tbaa !9
  %156 = fcmp ogt float %154, %155
  br i1 %156, label %157, label %168

157:                                              ; preds = %153
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.anon.0, ptr %26, i32 0, i32 0
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.CgmRay3d, ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds %struct.anon.0, ptr %161, i32 0, i32 0
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = call float @llvm.copysign.f32(float 1.000000e+00, float %163)
  %165 = fneg float %164
  store float %165, ptr %159, align 4, !tbaa !12
  %166 = getelementptr inbounds %struct.anon.0, ptr %26, i32 0, i32 1
  store float 0.000000e+00, ptr %166, align 4, !tbaa !14
  %167 = getelementptr inbounds %struct.anon.0, ptr %26, i32 0, i32 2
  store float 0.000000e+00, ptr %167, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %158, ptr align 4 %26, i64 12, i1 false), !tbaa.struct !16
  br label %199

168:                                              ; preds = %153, %149
  %169 = load float, ptr %18, align 4, !tbaa !9
  %170 = load float, ptr %14, align 4, !tbaa !9
  %171 = fcmp ogt float %169, %170
  br i1 %171, label %172, label %187

172:                                              ; preds = %168
  %173 = load float, ptr %18, align 4, !tbaa !9
  %174 = load float, ptr %22, align 4, !tbaa !9
  %175 = fcmp ogt float %173, %174
  br i1 %175, label %176, label %187

176:                                              ; preds = %172
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.anon.0, ptr %27, i32 0, i32 0
  store float 0.000000e+00, ptr %178, align 4, !tbaa !12
  %179 = getelementptr inbounds %struct.anon.0, ptr %27, i32 0, i32 1
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.CgmRay3d, ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %struct.anon.0, ptr %181, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !11
  %184 = call float @llvm.copysign.f32(float 1.000000e+00, float %183)
  %185 = fneg float %184
  store float %185, ptr %179, align 4, !tbaa !14
  %186 = getelementptr inbounds %struct.anon.0, ptr %27, i32 0, i32 2
  store float 0.000000e+00, ptr %186, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %177, ptr align 4 %27, i64 12, i1 false), !tbaa.struct !16
  br label %198

187:                                              ; preds = %172, %168
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.anon.0, ptr %28, i32 0, i32 0
  store float 0.000000e+00, ptr %189, align 4, !tbaa !12
  %190 = getelementptr inbounds %struct.anon.0, ptr %28, i32 0, i32 1
  store float 0.000000e+00, ptr %190, align 4, !tbaa !14
  %191 = getelementptr inbounds %struct.anon.0, ptr %28, i32 0, i32 2
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.CgmRay3d, ptr %192, i32 0, i32 1
  %194 = getelementptr inbounds %struct.anon.0, ptr %193, i32 0, i32 2
  %195 = load float, ptr %194, align 4, !tbaa !11
  %196 = call float @llvm.copysign.f32(float 1.000000e+00, float %195)
  %197 = fneg float %196
  store float %197, ptr %191, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %188, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !16
  br label %198

198:                                              ; preds = %187, %176
  br label %199

199:                                              ; preds = %198, %157
  br label %200

200:                                              ; preds = %199, %146
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %206

203:                                              ; preds = %200
  %204 = load float, ptr %24, align 4, !tbaa !9
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  store float %204, ptr %205, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %203, %200
  store i8 1, ptr %6, align 1
  store i32 1, ptr %29, align 4
  br label %208

207:                                              ; preds = %142, %138, %5
  store i8 0, ptr %6, align 1
  store i32 1, ptr %29, align 4
  br label %208

208:                                              ; preds = %207, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %209 = load i8, ptr %6, align 1
  ret i8 %209
}

attributes #0 = { nounwind 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8}
!14 = !{!13, !10, i64 4}
!15 = !{!13, !10, i64 8}
!16 = !{i64 0, i64 12, !11}


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

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_min(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_max(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.copysign.f32(float, float) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @cgm_3d_ray_vs_aabb(ptr nocapture noundef readonly %0, float noundef %1, ptr nocapture noundef readonly %2, ptr noundef writeonly %3, ptr noundef writeonly %4) local_unnamed_addr #0 {
  %6 = load float, ptr %2, align 4, !tbaa !5
  %7 = load float, ptr %0, align 4, !tbaa !5
  %8 = fsub float %6, %7
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = fdiv float %8, %10
  %12 = getelementptr inbounds i8, ptr %2, i64 12
  %13 = load float, ptr %12, align 4, !tbaa !5
  %14 = fsub float %13, %7
  %15 = fdiv float %14, %10
  %16 = tail call float @cgm_min(float noundef %11, float noundef %15)
  %17 = tail call float @cgm_max(float noundef %11, float noundef %15)
  %18 = getelementptr inbounds i8, ptr %2, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = fsub float %19, %21
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = fdiv float %22, %24
  %26 = getelementptr inbounds i8, ptr %2, i64 16
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = fsub float %27, %21
  %29 = fdiv float %28, %24
  %30 = tail call float @cgm_min(float noundef %25, float noundef %29)
  %31 = tail call float @cgm_max(float noundef %25, float noundef %29)
  %32 = getelementptr inbounds i8, ptr %2, i64 8
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = fsub float %33, %35
  %37 = getelementptr inbounds i8, ptr %0, i64 20
  %38 = load float, ptr %37, align 4, !tbaa !5
  %39 = fdiv float %36, %38
  %40 = getelementptr inbounds i8, ptr %2, i64 20
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = fsub float %41, %35
  %43 = fdiv float %42, %38
  %44 = tail call float @cgm_min(float noundef %39, float noundef %43)
  %45 = tail call float @cgm_max(float noundef %39, float noundef %43)
  %46 = tail call float @cgm_max(float noundef %30, float noundef %44)
  %47 = tail call float @cgm_max(float noundef %16, float noundef %46)
  %48 = tail call float @cgm_min(float noundef %31, float noundef %45)
  %49 = tail call float @cgm_min(float noundef %17, float noundef %48)
  %50 = fcmp ule float %49, 0.000000e+00
  %51 = fcmp ult float %49, %47
  %52 = fcmp ugt float %47, %1
  %53 = or i1 %52, %51
  %or.cond72 = select i1 %50, i1 true, i1 %53
  br i1 %or.cond72, label %75, label %54

54:                                               ; preds = %5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %73, label %55

55:                                               ; preds = %54
  %56 = fcmp ogt float %16, %30
  %57 = fcmp ogt float %16, %44
  %or.cond73 = select i1 %56, i1 %57, i1 false
  br i1 %or.cond73, label %58, label %62

58:                                               ; preds = %55
  %59 = load float, ptr %9, align 4, !tbaa !5
  %60 = fneg float %59
  %61 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %60)
  store float %61, ptr %3, align 4
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 4
  store <2 x float> zeroinitializer, ptr %.sroa.25.0..sroa_idx, align 4
  br label %73

62:                                               ; preds = %55
  %63 = fcmp ogt float %30, %16
  %64 = fcmp ogt float %30, %44
  %or.cond74 = select i1 %63, i1 %64, i1 false
  %.sroa.33.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  br i1 %or.cond74, label %65, label %69

65:                                               ; preds = %62
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 4
  %66 = load float, ptr %23, align 4, !tbaa !5
  %67 = fneg float %66
  %68 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %67)
  store float 0.000000e+00, ptr %3, align 4
  store float %68, ptr %.sroa.22.0..sroa_idx, align 4
  store float 0.000000e+00, ptr %.sroa.33.0..sroa_idx, align 4, !tbaa !5
  br label %73

69:                                               ; preds = %62
  %70 = load float, ptr %37, align 4, !tbaa !5
  %71 = fneg float %70
  %72 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %71)
  store <2 x float> zeroinitializer, ptr %3, align 4
  store float %72, ptr %.sroa.33.0..sroa_idx, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %58, %69, %65, %54
  %.not71 = icmp eq ptr %4, null
  br i1 %.not71, label %75, label %74

74:                                               ; preds = %73
  store float %47, ptr %4, align 4, !tbaa !8
  br label %75

75:                                               ; preds = %5, %73, %74
  %.0 = phi i8 [ 1, %74 ], [ 1, %73 ], [ 0, %5 ]
  ret i8 %.0
}

attributes #0 = { nounwind 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 #1 = { mustprogress 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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass