; LLVM IR from ashishzero/karma :: src/modules/core/lin_maths.ll (Z15next_simplex_exP10Support_ExP4Vec2Pj)

; 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.Vec2 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }
%struct.Support_Ex = type { %union.Vec2, %union.Vec2, %union.Vec2 }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_Z4vec2ff(float noundef, float noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8vec2_dot4Vec2S_(<2 x float>, <2 x float>) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z16vec2_determinant4Vec2S_(<2 x float>, <2 x float>) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4Vec2S_(<2 x float>, <2 x float>) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z15next_simplex_exP10Support_ExP4Vec2Pj(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %union.Vec2, align 4
  %9 = alloca %union.Vec2, align 4
  %10 = alloca %union.Vec2, align 4
  %11 = alloca %union.Vec2, align 4
  %12 = alloca %union.Vec2, align 4
  %13 = alloca %union.Vec2, align 4
  %14 = alloca float, align 4
  %15 = alloca %union.Vec2, align 4
  %16 = alloca %union.Vec2, align 4
  %17 = alloca %union.Vec2, align 4
  %18 = alloca %union.Vec2, align 4
  %19 = alloca %union.Vec2, align 4
  %20 = alloca %union.Vec2, align 4
  %21 = alloca %union.Vec2, align 4
  %22 = alloca %union.Vec2, align 4
  %23 = alloca %union.Vec2, align 4
  %24 = alloca float, align 4
  %25 = alloca %union.Vec2, align 4
  %26 = alloca %union.Vec2, align 4
  %27 = alloca %union.Vec2, align 4
  %28 = alloca %union.Vec2, align 4
  %29 = alloca %union.Vec2, align 4
  %30 = alloca %union.Vec2, align 4
  %31 = alloca float, align 4
  %32 = alloca %union.Vec2, align 4
  %33 = alloca %union.Vec2, align 4
  %34 = alloca %union.Vec2, align 4
  %35 = alloca %union.Vec2, align 4
  %36 = alloca float, align 4
  %37 = alloca %union.Vec2, align 4
  %38 = alloca %union.Vec2, align 4
  %39 = alloca %union.Vec2, align 4
  %40 = alloca %union.Vec2, align 4
  %41 = alloca %union.Vec2, align 4
  %42 = alloca %union.Vec2, align 4
  %43 = alloca %union.Vec2, align 4
  %44 = alloca float, align 4
  %45 = alloca %union.Vec2, align 4
  %46 = alloca %union.Vec2, align 4
  %47 = alloca %union.Vec2, align 4
  %48 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  switch i32 %50, label %326 [
    i32 2, label %51
    i32 3, label %108
  ]

51:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Support_Ex, ptr %52, i64 0
  %54 = getelementptr inbounds %struct.Support_Ex, ptr %53, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %54, i64 8, i1 false), !tbaa.struct !11
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Support_Ex, ptr %55, i64 1
  %57 = getelementptr inbounds %struct.Support_Ex, ptr %56, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !11
  %58 = getelementptr inbounds %union.Vec2, ptr %9, i32 0, i32 0
  %59 = load <2 x float>, ptr %58, align 4
  %60 = getelementptr inbounds %union.Vec2, ptr %10, i32 0, i32 0
  %61 = load <2 x float>, ptr %60, align 4
  %62 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %59, <2 x float> %61)
  %63 = getelementptr inbounds %union.Vec2, ptr %8, i32 0, i32 0
  store <2 x float> %62, ptr %63, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.Support_Ex, ptr %64, i64 1
  %66 = getelementptr inbounds %struct.Support_Ex, ptr %65, i32 0, i32 2
  %67 = call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %66)
  %68 = getelementptr inbounds %union.Vec2, ptr %11, i32 0, i32 0
  store <2 x float> %67, ptr %68, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !11
  %69 = getelementptr inbounds %union.Vec2, ptr %12, i32 0, i32 0
  %70 = load <2 x float>, ptr %69, align 4
  %71 = getelementptr inbounds %union.Vec2, ptr %13, i32 0, i32 0
  %72 = load <2 x float>, ptr %71, align 4
  %73 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %70, <2 x float> %72)
  %74 = fcmp ogt float %73, 0.000000e+00
  br i1 %74, label %75, label %100

75:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Support_Ex, ptr %76, i64 1
  %78 = getelementptr inbounds %struct.Support_Ex, ptr %77, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %78, i64 8, i1 false), !tbaa.struct !11
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Support_Ex, ptr %79, i64 0
  %81 = getelementptr inbounds %struct.Support_Ex, ptr %80, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %81, i64 8, i1 false), !tbaa.struct !11
  %82 = getelementptr inbounds %union.Vec2, ptr %15, i32 0, i32 0
  %83 = load <2 x float>, ptr %82, align 4
  %84 = getelementptr inbounds %union.Vec2, ptr %16, i32 0, i32 0
  %85 = load <2 x float>, ptr %84, align 4
  %86 = call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %83, <2 x float> %85)
  store float %86, ptr %14, align 4, !tbaa !13
  %87 = getelementptr inbounds %struct.anon.1, ptr %8, i32 0, i32 1
  %88 = load float, ptr %87, align 4, !tbaa !12
  %89 = fneg float %88
  %90 = load float, ptr %14, align 4, !tbaa !13
  %91 = fmul float %89, %90
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.anon.1, ptr %92, i32 0, i32 0
  store float %91, ptr %93, align 4, !tbaa !12
  %94 = getelementptr inbounds %struct.anon.1, ptr %8, i32 0, i32 0
  %95 = load float, ptr %94, align 4, !tbaa !12
  %96 = load float, ptr %14, align 4, !tbaa !13
  %97 = fmul float %95, %96
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.anon.1, ptr %98, i32 0, i32 1
  store float %97, ptr %99, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %107

100:                                              ; preds = %51
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !11
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.Support_Ex, ptr %102, i64 1
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.Support_Ex, ptr %104, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %103, i64 24, i1 false), !tbaa.struct !15
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %106, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %100, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %326

108:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Support_Ex, ptr %109, i64 1
  %111 = getelementptr inbounds %struct.Support_Ex, ptr %110, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %111, i64 8, i1 false), !tbaa.struct !11
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Support_Ex, ptr %112, i64 2
  %114 = getelementptr inbounds %struct.Support_Ex, ptr %113, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %114, i64 8, i1 false), !tbaa.struct !11
  %115 = getelementptr inbounds %union.Vec2, ptr %18, i32 0, i32 0
  %116 = load <2 x float>, ptr %115, align 4
  %117 = getelementptr inbounds %union.Vec2, ptr %19, i32 0, i32 0
  %118 = load <2 x float>, ptr %117, align 4
  %119 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %116, <2 x float> %118)
  %120 = getelementptr inbounds %union.Vec2, ptr %17, i32 0, i32 0
  store <2 x float> %119, ptr %120, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Support_Ex, ptr %121, i64 0
  %123 = getelementptr inbounds %struct.Support_Ex, ptr %122, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %123, i64 8, i1 false), !tbaa.struct !11
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Support_Ex, ptr %124, i64 2
  %126 = getelementptr inbounds %struct.Support_Ex, ptr %125, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %126, i64 8, i1 false), !tbaa.struct !11
  %127 = getelementptr inbounds %union.Vec2, ptr %21, i32 0, i32 0
  %128 = load <2 x float>, ptr %127, align 4
  %129 = getelementptr inbounds %union.Vec2, ptr %22, i32 0, i32 0
  %130 = load <2 x float>, ptr %129, align 4
  %131 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %128, <2 x float> %130)
  %132 = getelementptr inbounds %union.Vec2, ptr %20, i32 0, i32 0
  store <2 x float> %131, ptr %132, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Support_Ex, ptr %133, i64 2
  %135 = getelementptr inbounds %struct.Support_Ex, ptr %134, i32 0, i32 2
  %136 = call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %135)
  %137 = getelementptr inbounds %union.Vec2, ptr %23, i32 0, i32 0
  store <2 x float> %136, ptr %137, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !11
  %138 = getelementptr inbounds %union.Vec2, ptr %25, i32 0, i32 0
  %139 = load <2 x float>, ptr %138, align 4
  %140 = getelementptr inbounds %union.Vec2, ptr %26, i32 0, i32 0
  %141 = load <2 x float>, ptr %140, align 4
  %142 = call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %139, <2 x float> %141)
  store float %142, ptr %24, align 4, !tbaa !13
  %143 = getelementptr inbounds %struct.anon.1, ptr %20, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !12
  %145 = fneg float %144
  %146 = load float, ptr %24, align 4, !tbaa !13
  %147 = fmul float %145, %146
  %148 = getelementptr inbounds %struct.anon.1, ptr %20, i32 0, i32 0
  %149 = load float, ptr %148, align 4, !tbaa !12
  %150 = load float, ptr %24, align 4, !tbaa !13
  %151 = fmul float %149, %150
  %152 = call <2 x float> @_Z4vec2ff(float noundef %147, float noundef %151)
  %153 = getelementptr inbounds %union.Vec2, ptr %27, i32 0, i32 0
  store <2 x float> %152, ptr %153, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  %154 = getelementptr inbounds %union.Vec2, ptr %27, i32 0, i32 0
  %155 = load <2 x float>, ptr %154, align 4
  %156 = getelementptr inbounds %union.Vec2, ptr %28, i32 0, i32 0
  %157 = load <2 x float>, ptr %156, align 4
  %158 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %155, <2 x float> %157)
  %159 = fcmp ogt float %158, 0.000000e+00
  br i1 %159, label %160, label %252

160:                                              ; preds = %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  %161 = getelementptr inbounds %union.Vec2, ptr %29, i32 0, i32 0
  %162 = load <2 x float>, ptr %161, align 4
  %163 = getelementptr inbounds %union.Vec2, ptr %30, i32 0, i32 0
  %164 = load <2 x float>, ptr %163, align 4
  %165 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %162, <2 x float> %164)
  %166 = fcmp ogt float %165, 0.000000e+00
  br i1 %166, label %167, label %201

167:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.Support_Ex, ptr %168, i64 2
  %170 = getelementptr inbounds %struct.Support_Ex, ptr %169, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %170, i64 8, i1 false), !tbaa.struct !11
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.Support_Ex, ptr %171, i64 0
  %173 = getelementptr inbounds %struct.Support_Ex, ptr %172, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %173, i64 8, i1 false), !tbaa.struct !11
  %174 = getelementptr inbounds %union.Vec2, ptr %32, i32 0, i32 0
  %175 = load <2 x float>, ptr %174, align 4
  %176 = getelementptr inbounds %union.Vec2, ptr %33, i32 0, i32 0
  %177 = load <2 x float>, ptr %176, align 4
  %178 = call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %175, <2 x float> %177)
  store float %178, ptr %31, align 4, !tbaa !13
  %179 = getelementptr inbounds %struct.anon.1, ptr %20, i32 0, i32 1
  %180 = load float, ptr %179, align 4, !tbaa !12
  %181 = fneg float %180
  %182 = load float, ptr %31, align 4, !tbaa !13
  %183 = fmul float %181, %182
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.anon.1, ptr %184, i32 0, i32 0
  store float %183, ptr %185, align 4, !tbaa !12
  %186 = getelementptr inbounds %struct.anon.1, ptr %20, i32 0, i32 0
  %187 = load float, ptr %186, align 4, !tbaa !12
  %188 = load float, ptr %31, align 4, !tbaa !13
  %189 = fmul float %187, %188
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.anon.1, ptr %190, i32 0, i32 1
  store float %189, ptr %191, align 4, !tbaa !12
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.Support_Ex, ptr %192, i64 0
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.Support_Ex, ptr %194, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %195, ptr align 4 %193, i64 24, i1 false), !tbaa.struct !15
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.Support_Ex, ptr %196, i64 2
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.Support_Ex, ptr %198, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %199, ptr align 4 %197, i64 24, i1 false), !tbaa.struct !15
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 2, ptr %200, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %251

201:                                              ; preds = %160
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  %202 = getelementptr inbounds %union.Vec2, ptr %34, i32 0, i32 0
  %203 = load <2 x float>, ptr %202, align 4
  %204 = getelementptr inbounds %union.Vec2, ptr %35, i32 0, i32 0
  %205 = load <2 x float>, ptr %204, align 4
  %206 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %203, <2 x float> %205)
  %207 = fcmp ogt float %206, 0.000000e+00
  br i1 %207, label %208, label %238

208:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.Support_Ex, ptr %209, i64 2
  %211 = getelementptr inbounds %struct.Support_Ex, ptr %210, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %211, i64 8, i1 false), !tbaa.struct !11
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.Support_Ex, ptr %212, i64 1
  %214 = getelementptr inbounds %struct.Support_Ex, ptr %213, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %214, i64 8, i1 false), !tbaa.struct !11
  %215 = getelementptr inbounds %union.Vec2, ptr %37, i32 0, i32 0
  %216 = load <2 x float>, ptr %215, align 4
  %217 = getelementptr inbounds %union.Vec2, ptr %38, i32 0, i32 0
  %218 = load <2 x float>, ptr %217, align 4
  %219 = call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %216, <2 x float> %218)
  store float %219, ptr %36, align 4, !tbaa !13
  %220 = getelementptr inbounds %struct.anon.1, ptr %17, i32 0, i32 1
  %221 = load float, ptr %220, align 4, !tbaa !12
  %222 = fneg float %221
  %223 = load float, ptr %36, align 4, !tbaa !13
  %224 = fmul float %222, %223
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.anon.1, ptr %225, i32 0, i32 0
  store float %224, ptr %226, align 4, !tbaa !12
  %227 = getelementptr inbounds %struct.anon.1, ptr %17, i32 0, i32 0
  %228 = load float, ptr %227, align 4, !tbaa !12
  %229 = load float, ptr %36, align 4, !tbaa !13
  %230 = fmul float %228, %229
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.anon.1, ptr %231, i32 0, i32 1
  store float %230, ptr %232, align 4, !tbaa !12
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.Support_Ex, ptr %233, i64 2
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.Support_Ex, ptr %235, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %236, ptr align 4 %234, i64 24, i1 false), !tbaa.struct !15
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 2, ptr %237, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %250

238:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.Support_Ex, ptr %239, i64 2
  %241 = getelementptr inbounds %struct.Support_Ex, ptr %240, i32 0, i32 2
  %242 = call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %241)
  %243 = getelementptr inbounds %union.Vec2, ptr %39, i32 0, i32 0
  store <2 x float> %242, ptr %243, align 4
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %244, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.Support_Ex, ptr %245, i64 2
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.Support_Ex, ptr %247, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %248, ptr align 4 %246, i64 24, i1 false), !tbaa.struct !15
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %249, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %238, %208
  br label %251

251:                                              ; preds = %250, %167
  br label %322

252:                                              ; preds = %108
  %253 = getelementptr inbounds %struct.anon.1, ptr %17, i32 0, i32 1
  %254 = load float, ptr %253, align 4, !tbaa !12
  %255 = load float, ptr %24, align 4, !tbaa !13
  %256 = fmul float %254, %255
  %257 = getelementptr inbounds %struct.anon.1, ptr %17, i32 0, i32 0
  %258 = load float, ptr %257, align 4, !tbaa !12
  %259 = fneg float %258
  %260 = load float, ptr %24, align 4, !tbaa !13
  %261 = fmul float %259, %260
  %262 = call <2 x float> @_Z4vec2ff(float noundef %256, float noundef %261)
  %263 = getelementptr inbounds %union.Vec2, ptr %40, i32 0, i32 0
  store <2 x float> %262, ptr %263, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  %264 = getelementptr inbounds %union.Vec2, ptr %40, i32 0, i32 0
  %265 = load <2 x float>, ptr %264, align 4
  %266 = getelementptr inbounds %union.Vec2, ptr %41, i32 0, i32 0
  %267 = load <2 x float>, ptr %266, align 4
  %268 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %265, <2 x float> %267)
  %269 = fcmp ogt float %268, 0.000000e+00
  br i1 %269, label %270, label %320

270:                                              ; preds = %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  %271 = getelementptr inbounds %union.Vec2, ptr %42, i32 0, i32 0
  %272 = load <2 x float>, ptr %271, align 4
  %273 = getelementptr inbounds %union.Vec2, ptr %43, i32 0, i32 0
  %274 = load <2 x float>, ptr %273, align 4
  %275 = call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %272, <2 x float> %274)
  %276 = fcmp ogt float %275, 0.000000e+00
  br i1 %276, label %277, label %307

277:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.Support_Ex, ptr %278, i64 2
  %280 = getelementptr inbounds %struct.Support_Ex, ptr %279, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %280, i64 8, i1 false), !tbaa.struct !11
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.Support_Ex, ptr %281, i64 1
  %283 = getelementptr inbounds %struct.Support_Ex, ptr %282, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %283, i64 8, i1 false), !tbaa.struct !11
  %284 = getelementptr inbounds %union.Vec2, ptr %45, i32 0, i32 0
  %285 = load <2 x float>, ptr %284, align 4
  %286 = getelementptr inbounds %union.Vec2, ptr %46, i32 0, i32 0
  %287 = load <2 x float>, ptr %286, align 4
  %288 = call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %285, <2 x float> %287)
  store float %288, ptr %44, align 4, !tbaa !13
  %289 = getelementptr inbounds %struct.anon.1, ptr %17, i32 0, i32 1
  %290 = load float, ptr %289, align 4, !tbaa !12
  %291 = fneg float %290
  %292 = load float, ptr %44, align 4, !tbaa !13
  %293 = fmul float %291, %292
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.anon.1, ptr %294, i32 0, i32 0
  store float %293, ptr %295, align 4, !tbaa !12
  %296 = getelementptr inbounds %struct.anon.1, ptr %17, i32 0, i32 0
  %297 = load float, ptr %296, align 4, !tbaa !12
  %298 = load float, ptr %44, align 4, !tbaa !13
  %299 = fmul float %297, %298
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.anon.1, ptr %300, i32 0, i32 1
  store float %299, ptr %301, align 4, !tbaa !12
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.Support_Ex, ptr %302, i64 2
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.Support_Ex, ptr %304, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %305, ptr align 4 %303, i64 24, i1 false), !tbaa.struct !15
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 2, ptr %306, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %319

307:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.Support_Ex, ptr %308, i64 2
  %310 = getelementptr inbounds %struct.Support_Ex, ptr %309, i32 0, i32 2
  %311 = call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %310)
  %312 = getelementptr inbounds %union.Vec2, ptr %47, i32 0, i32 0
  store <2 x float> %311, ptr %312, align 4
  %313 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %313, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.Support_Ex, ptr %314, i64 2
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.Support_Ex, ptr %316, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %317, ptr align 4 %315, i64 24, i1 false), !tbaa.struct !15
  %318 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %318, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %307, %277
  br label %321

320:                                              ; preds = %252
  store i1 true, ptr %4, align 1
  store i32 1, ptr %48, align 4
  br label %323

321:                                              ; preds = %319
  br label %322

322:                                              ; preds = %321, %251
  store i32 0, ptr %48, align 4
  br label %323

323:                                              ; preds = %322, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %324 = load i32, ptr %48, align 4
  switch i32 %324, label %329 [
    i32 0, label %325
    i32 1, label %327
  ]

325:                                              ; preds = %323
  br label %326

326:                                              ; preds = %325, %107, %3
  store i1 false, ptr %4, align 1
  br label %327

327:                                              ; preds = %326, %323
  %328 = load i1, ptr %4, align 1
  ret i1 %328

329:                                              ; preds = %323
  unreachable
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind 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 #2 = { mustprogress nounwind 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12}


; 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: mustprogress 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) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_Z4vec2ff(float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8vec2_dot4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z16vec2_determinant4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z15next_simplex_exP10Support_ExP4Vec2Pj(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef %2) local_unnamed_addr #4 {
  %4 = load i32, ptr %2, align 4, !tbaa !5
  switch i32 %4, label %.thread [
    i32 2, label %5
    i32 3, label %20
  ]

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.065.0.copyload = load <2 x float>, ptr %6, align 4, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.064.0.copyload = load <2 x float>, ptr %7, align 4, !tbaa !9
  %8 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.065.0.copyload, <2 x float> %.sroa.064.0.copyload)
  %9 = tail call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %10 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %9, <2 x float> %8)
  %11 = fcmp ogt float %10, 0.000000e+00
  br i1 %11, label %12, label %18

12:                                               ; preds = %5
  %.sroa.058.0.copyload = load <2 x float>, ptr %7, align 4, !tbaa !9
  %.sroa.057.0.copyload = load <2 x float>, ptr %6, align 4, !tbaa !9
  %13 = tail call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %.sroa.058.0.copyload, <2 x float> %.sroa.057.0.copyload)
  %.sroa.066.4.vec.extract = extractelement <2 x float> %8, i64 1
  %14 = fneg float %.sroa.066.4.vec.extract
  %15 = fmul float %13, %14
  store float %15, ptr %1, align 4, !tbaa !9
  %.sroa.066.0.vec.extract = extractelement <2 x float> %8, i64 0
  %16 = fmul float %.sroa.066.0.vec.extract, %13
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  store float %16, ptr %17, align 4, !tbaa !9
  br label %.thread

18:                                               ; preds = %5
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  store <2 x float> %9, ptr %1, align 4, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %19, i64 24, i1 false), !tbaa.struct !10
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %.thread

20:                                               ; preds = %3
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.044.0.copyload = load <2 x float>, ptr %22, align 4, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  %.sroa.043.0.copyload = load <2 x float>, ptr %24, align 4, !tbaa !9
  %25 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.044.0.copyload, <2 x float> %.sroa.043.0.copyload)
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.035.0.copyload = load <2 x float>, ptr %26, align 4, !tbaa !9
  %.sroa.034.0.copyload = load <2 x float>, ptr %24, align 4, !tbaa !9
  %27 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %.sroa.035.0.copyload, <2 x float> %.sroa.034.0.copyload)
  %28 = tail call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %24)
  %29 = tail call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %25, <2 x float> %27)
  %.sroa.036.4.vec.extract = extractelement <2 x float> %27, i64 1
  %30 = fneg float %.sroa.036.4.vec.extract
  %31 = fmul float %29, %30
  %.sroa.036.0.vec.extract = extractelement <2 x float> %27, i64 0
  %32 = fmul float %.sroa.036.0.vec.extract, %29
  %33 = tail call <2 x float> @_Z4vec2ff(float noundef %31, float noundef %32)
  %34 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %33, <2 x float> %28)
  %35 = fcmp ogt float %34, 0.000000e+00
  br i1 %35, label %36, label %55

36:                                               ; preds = %20
  %37 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %27, <2 x float> %28)
  %38 = fcmp ogt float %37, 0.000000e+00
  br i1 %38, label %39, label %44

39:                                               ; preds = %36
  %.sroa.016.0.copyload = load <2 x float>, ptr %24, align 4, !tbaa !9
  %.sroa.015.0.copyload = load <2 x float>, ptr %26, align 4, !tbaa !9
  %40 = tail call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %.sroa.016.0.copyload, <2 x float> %.sroa.015.0.copyload)
  %41 = fmul float %40, %30
  store float %41, ptr %1, align 4, !tbaa !9
  %42 = fmul float %.sroa.036.0.vec.extract, %40
  %43 = getelementptr inbounds i8, ptr %1, i64 4
  store float %42, ptr %43, align 4, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %21, ptr noundef nonnull align 4 dereferenceable(24) %0, i64 24, i1 false), !tbaa.struct !10
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %23, i64 24, i1 false), !tbaa.struct !10
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %.thread

44:                                               ; preds = %36
  %45 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %25, <2 x float> %28)
  %46 = fcmp ogt float %45, 0.000000e+00
  br i1 %46, label %47, label %53

47:                                               ; preds = %44
  %.sroa.010.0.copyload = load <2 x float>, ptr %24, align 4, !tbaa !9
  %.sroa.09.0.copyload = load <2 x float>, ptr %22, align 4, !tbaa !9
  %48 = tail call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %.sroa.010.0.copyload, <2 x float> %.sroa.09.0.copyload)
  %.sroa.045.4.vec.extract = extractelement <2 x float> %25, i64 1
  %49 = fneg float %.sroa.045.4.vec.extract
  %50 = fmul float %48, %49
  store float %50, ptr %1, align 4, !tbaa !9
  %.sroa.045.0.vec.extract = extractelement <2 x float> %25, i64 0
  %51 = fmul float %.sroa.045.0.vec.extract, %48
  %52 = getelementptr inbounds i8, ptr %1, i64 4
  store float %51, ptr %52, align 4, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %23, i64 24, i1 false), !tbaa.struct !10
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %.thread

53:                                               ; preds = %44
  %54 = tail call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %54, ptr %1, align 4, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %23, i64 24, i1 false), !tbaa.struct !10
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %.thread

55:                                               ; preds = %20
  %.sroa.045.4.vec.extract54 = extractelement <2 x float> %25, i64 1
  %56 = fmul float %.sroa.045.4.vec.extract54, %29
  %.sroa.045.0.vec.extract50 = extractelement <2 x float> %25, i64 0
  %57 = fneg float %.sroa.045.0.vec.extract50
  %58 = fmul float %29, %57
  %59 = tail call <2 x float> @_Z4vec2ff(float noundef %56, float noundef %58)
  %60 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %59, <2 x float> %28)
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %.thread

62:                                               ; preds = %55
  %63 = tail call noundef float @_Z8vec2_dot4Vec2S_(<2 x float> %25, <2 x float> %28)
  %64 = fcmp ogt float %63, 0.000000e+00
  br i1 %64, label %65, label %71

65:                                               ; preds = %62
  %.sroa.02.0.copyload = load <2 x float>, ptr %24, align 4, !tbaa !9
  %.sroa.01.0.copyload = load <2 x float>, ptr %22, align 4, !tbaa !9
  %66 = tail call noundef float @_Z16vec2_determinant4Vec2S_(<2 x float> %.sroa.02.0.copyload, <2 x float> %.sroa.01.0.copyload)
  %67 = fneg float %.sroa.045.4.vec.extract54
  %68 = fmul float %66, %67
  store float %68, ptr %1, align 4, !tbaa !9
  %69 = fmul float %.sroa.045.0.vec.extract50, %66
  %70 = getelementptr inbounds i8, ptr %1, i64 4
  store float %69, ptr %70, align 4, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %23, i64 24, i1 false), !tbaa.struct !10
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %.thread

71:                                               ; preds = %62
  %72 = tail call <2 x float> @_ZngRK4Vec2(ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %72, ptr %1, align 4, !tbaa !9
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(24) %23, i64 24, i1 false), !tbaa.struct !10
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %47, %53, %39, %65, %71, %3, %18, %12, %55
  %.1 = phi i1 [ true, %55 ], [ false, %12 ], [ false, %18 ], [ false, %3 ], [ false, %71 ], [ false, %65 ], [ false, %39 ], [ false, %53 ], [ false, %47 ]
  ret i1 %.1
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind 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 #2 = { mustprogress nounwind 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 = { 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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9}


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