; LLVM IR from aparis69/Segment-Tracing :: Code/Source/fundamentals.ll (ZNK3Box9IntersectERK3RayRdS3_d)

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

%class.Vector = type { [3 x double] }
%class.Ray = type { %class.Vector, %class.Vector }
%class.Box = type { %class.Vector, %class.Vector }

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3Box9IntersectERK3RayRdS3_d(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, double noundef %4) #2 align 2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca %class.Vector, align 8
  %13 = alloca %class.Vector, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store double %4, ptr %11, align 8, !tbaa !9
  %16 = load ptr, ptr %7, align 8
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  store double -1.000000e+16, ptr %17, align 8, !tbaa !9
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  store double 1.000000e+16, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.Ray, ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.Ray, ptr %21, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %22, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
  %24 = load double, ptr %23, align 8, !tbaa !9
  %25 = load double, ptr %11, align 8, !tbaa !9
  %26 = fneg double %25
  %27 = fcmp olt double %24, %26
  br i1 %27, label %28, label %73

28:                                               ; preds = %5
  %29 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %30 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %29, i32 noundef 0)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = fsub double %30, %32
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = fdiv double %33, %35
  store double %36, ptr %14, align 8, !tbaa !9
  %37 = load double, ptr %14, align 8, !tbaa !9
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = fcmp olt double %37, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %28
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

42:                                               ; preds = %28
  %43 = load double, ptr %14, align 8, !tbaa !9
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fcmp ole double %43, %45
  br i1 %46, label %47, label %50

47:                                               ; preds = %42
  %48 = load double, ptr %14, align 8, !tbaa !9
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  store double %48, ptr %49, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %47, %42
  %51 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %52 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %51, i32 noundef 0)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fsub double %52, %54
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = fdiv double %55, %57
  store double %58, ptr %14, align 8, !tbaa !9
  %59 = load double, ptr %14, align 8, !tbaa !9
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = fcmp oge double %59, %61
  br i1 %62, label %63, label %72

63:                                               ; preds = %50
  %64 = load double, ptr %14, align 8, !tbaa !9
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = fcmp ogt double %64, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

69:                                               ; preds = %63
  %70 = load double, ptr %14, align 8, !tbaa !9
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  store double %70, ptr %71, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %69, %50
  br label %138

73:                                               ; preds = %5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = load double, ptr %11, align 8, !tbaa !9
  %77 = fcmp ogt double %75, %76
  br i1 %77, label %78, label %123

78:                                               ; preds = %73
  %79 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %80 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %79, i32 noundef 0)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = fsub double %80, %82
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = fdiv double %83, %85
  store double %86, ptr %14, align 8, !tbaa !9
  %87 = load double, ptr %14, align 8, !tbaa !9
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load double, ptr %88, align 8, !tbaa !9
  %90 = fcmp olt double %87, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %78
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

92:                                               ; preds = %78
  %93 = load double, ptr %14, align 8, !tbaa !9
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = fcmp ole double %93, %95
  br i1 %96, label %97, label %100

97:                                               ; preds = %92
  %98 = load double, ptr %14, align 8, !tbaa !9
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  store double %98, ptr %99, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %97, %92
  %101 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %102 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %101, i32 noundef 0)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  %104 = load double, ptr %103, align 8, !tbaa !9
  %105 = fsub double %102, %104
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 0)
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = fdiv double %105, %107
  store double %108, ptr %14, align 8, !tbaa !9
  %109 = load double, ptr %14, align 8, !tbaa !9
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = fcmp oge double %109, %111
  br i1 %112, label %113, label %122

113:                                              ; preds = %100
  %114 = load double, ptr %14, align 8, !tbaa !9
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = fcmp ogt double %114, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %113
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

119:                                              ; preds = %113
  %120 = load double, ptr %14, align 8, !tbaa !9
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  store double %120, ptr %121, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %119, %100
  br label %137

123:                                              ; preds = %73
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %127 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %126, i32 noundef 0)
  %128 = fcmp olt double %125, %127
  br i1 %128, label %135, label %129

129:                                              ; preds = %123
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %133 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %132, i32 noundef 0)
  %134 = fcmp ogt double %131, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %129, %123
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

136:                                              ; preds = %129
  br label %137

137:                                              ; preds = %136, %122
  br label %138

138:                                              ; preds = %137, %72
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = load double, ptr %11, align 8, !tbaa !9
  %142 = fneg double %141
  %143 = fcmp olt double %140, %142
  br i1 %143, label %144, label %189

144:                                              ; preds = %138
  %145 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %146 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %145, i32 noundef 1)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
  %148 = load double, ptr %147, align 8, !tbaa !9
  %149 = fsub double %146, %148
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = fdiv double %149, %151
  store double %152, ptr %14, align 8, !tbaa !9
  %153 = load double, ptr %14, align 8, !tbaa !9
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = load double, ptr %154, align 8, !tbaa !9
  %156 = fcmp olt double %153, %155
  br i1 %156, label %157, label %158

157:                                              ; preds = %144
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

158:                                              ; preds = %144
  %159 = load double, ptr %14, align 8, !tbaa !9
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load double, ptr %160, align 8, !tbaa !9
  %162 = fcmp ole double %159, %161
  br i1 %162, label %163, label %166

163:                                              ; preds = %158
  %164 = load double, ptr %14, align 8, !tbaa !9
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  store double %164, ptr %165, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %163, %158
  %167 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %168 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %167, i32 noundef 1)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
  %170 = load double, ptr %169, align 8, !tbaa !9
  %171 = fsub double %168, %170
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = fdiv double %171, %173
  store double %174, ptr %14, align 8, !tbaa !9
  %175 = load double, ptr %14, align 8, !tbaa !9
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = fcmp oge double %175, %177
  br i1 %178, label %179, label %188

179:                                              ; preds = %166
  %180 = load double, ptr %14, align 8, !tbaa !9
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load double, ptr %181, align 8, !tbaa !9
  %183 = fcmp ogt double %180, %182
  br i1 %183, label %184, label %185

184:                                              ; preds = %179
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

185:                                              ; preds = %179
  %186 = load double, ptr %14, align 8, !tbaa !9
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  store double %186, ptr %187, align 8, !tbaa !9
  br label %188

188:                                              ; preds = %185, %166
  br label %254

189:                                              ; preds = %138
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
  %191 = load double, ptr %190, align 8, !tbaa !9
  %192 = load double, ptr %11, align 8, !tbaa !9
  %193 = fcmp ogt double %191, %192
  br i1 %193, label %194, label %239

194:                                              ; preds = %189
  %195 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %196 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %195, i32 noundef 1)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
  %198 = load double, ptr %197, align 8, !tbaa !9
  %199 = fsub double %196, %198
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
  %201 = load double, ptr %200, align 8, !tbaa !9
  %202 = fdiv double %199, %201
  store double %202, ptr %14, align 8, !tbaa !9
  %203 = load double, ptr %14, align 8, !tbaa !9
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = load double, ptr %204, align 8, !tbaa !9
  %206 = fcmp olt double %203, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %194
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

208:                                              ; preds = %194
  %209 = load double, ptr %14, align 8, !tbaa !9
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = load double, ptr %210, align 8, !tbaa !9
  %212 = fcmp ole double %209, %211
  br i1 %212, label %213, label %216

213:                                              ; preds = %208
  %214 = load double, ptr %14, align 8, !tbaa !9
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  store double %214, ptr %215, align 8, !tbaa !9
  br label %216

216:                                              ; preds = %213, %208
  %217 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %218 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %217, i32 noundef 1)
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = fsub double %218, %220
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
  %223 = load double, ptr %222, align 8, !tbaa !9
  %224 = fdiv double %221, %223
  store double %224, ptr %14, align 8, !tbaa !9
  %225 = load double, ptr %14, align 8, !tbaa !9
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  %227 = load double, ptr %226, align 8, !tbaa !9
  %228 = fcmp oge double %225, %227
  br i1 %228, label %229, label %238

229:                                              ; preds = %216
  %230 = load double, ptr %14, align 8, !tbaa !9
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = load double, ptr %231, align 8, !tbaa !9
  %233 = fcmp ogt double %230, %232
  br i1 %233, label %234, label %235

234:                                              ; preds = %229
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

235:                                              ; preds = %229
  %236 = load double, ptr %14, align 8, !tbaa !9
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  store double %236, ptr %237, align 8, !tbaa !9
  br label %238

238:                                              ; preds = %235, %216
  br label %253

239:                                              ; preds = %189
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
  %241 = load double, ptr %240, align 8, !tbaa !9
  %242 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %243 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %242, i32 noundef 1)
  %244 = fcmp olt double %241, %243
  br i1 %244, label %251, label %245

245:                                              ; preds = %239
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
  %247 = load double, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %249 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %248, i32 noundef 1)
  %250 = fcmp ogt double %247, %249
  br i1 %250, label %251, label %252

251:                                              ; preds = %245, %239
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

252:                                              ; preds = %245
  br label %253

253:                                              ; preds = %252, %238
  br label %254

254:                                              ; preds = %253, %188
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
  %256 = load double, ptr %255, align 8, !tbaa !9
  %257 = load double, ptr %11, align 8, !tbaa !9
  %258 = fneg double %257
  %259 = fcmp olt double %256, %258
  br i1 %259, label %260, label %305

260:                                              ; preds = %254
  %261 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %262 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %261, i32 noundef 2)
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
  %264 = load double, ptr %263, align 8, !tbaa !9
  %265 = fsub double %262, %264
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
  %267 = load double, ptr %266, align 8, !tbaa !9
  %268 = fdiv double %265, %267
  store double %268, ptr %14, align 8, !tbaa !9
  %269 = load double, ptr %14, align 8, !tbaa !9
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = load double, ptr %270, align 8, !tbaa !9
  %272 = fcmp olt double %269, %271
  br i1 %272, label %273, label %274

273:                                              ; preds = %260
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

274:                                              ; preds = %260
  %275 = load double, ptr %14, align 8, !tbaa !9
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = load double, ptr %276, align 8, !tbaa !9
  %278 = fcmp ole double %275, %277
  br i1 %278, label %279, label %282

279:                                              ; preds = %274
  %280 = load double, ptr %14, align 8, !tbaa !9
  %281 = load ptr, ptr %10, align 8, !tbaa !5
  store double %280, ptr %281, align 8, !tbaa !9
  br label %282

282:                                              ; preds = %279, %274
  %283 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %284 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %283, i32 noundef 2)
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
  %286 = load double, ptr %285, align 8, !tbaa !9
  %287 = fsub double %284, %286
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
  %289 = load double, ptr %288, align 8, !tbaa !9
  %290 = fdiv double %287, %289
  store double %290, ptr %14, align 8, !tbaa !9
  %291 = load double, ptr %14, align 8, !tbaa !9
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = load double, ptr %292, align 8, !tbaa !9
  %294 = fcmp oge double %291, %293
  br i1 %294, label %295, label %304

295:                                              ; preds = %282
  %296 = load double, ptr %14, align 8, !tbaa !9
  %297 = load ptr, ptr %10, align 8, !tbaa !5
  %298 = load double, ptr %297, align 8, !tbaa !9
  %299 = fcmp ogt double %296, %298
  br i1 %299, label %300, label %301

300:                                              ; preds = %295
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

301:                                              ; preds = %295
  %302 = load double, ptr %14, align 8, !tbaa !9
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  store double %302, ptr %303, align 8, !tbaa !9
  br label %304

304:                                              ; preds = %301, %282
  br label %370

305:                                              ; preds = %254
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
  %307 = load double, ptr %306, align 8, !tbaa !9
  %308 = load double, ptr %11, align 8, !tbaa !9
  %309 = fcmp ogt double %307, %308
  br i1 %309, label %310, label %355

310:                                              ; preds = %305
  %311 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %312 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %311, i32 noundef 2)
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
  %314 = load double, ptr %313, align 8, !tbaa !9
  %315 = fsub double %312, %314
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
  %317 = load double, ptr %316, align 8, !tbaa !9
  %318 = fdiv double %315, %317
  store double %318, ptr %14, align 8, !tbaa !9
  %319 = load double, ptr %14, align 8, !tbaa !9
  %320 = load ptr, ptr %9, align 8, !tbaa !5
  %321 = load double, ptr %320, align 8, !tbaa !9
  %322 = fcmp olt double %319, %321
  br i1 %322, label %323, label %324

323:                                              ; preds = %310
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

324:                                              ; preds = %310
  %325 = load double, ptr %14, align 8, !tbaa !9
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  %327 = load double, ptr %326, align 8, !tbaa !9
  %328 = fcmp ole double %325, %327
  br i1 %328, label %329, label %332

329:                                              ; preds = %324
  %330 = load double, ptr %14, align 8, !tbaa !9
  %331 = load ptr, ptr %10, align 8, !tbaa !5
  store double %330, ptr %331, align 8, !tbaa !9
  br label %332

332:                                              ; preds = %329, %324
  %333 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %334 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %333, i32 noundef 2)
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
  %336 = load double, ptr %335, align 8, !tbaa !9
  %337 = fsub double %334, %336
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
  %339 = load double, ptr %338, align 8, !tbaa !9
  %340 = fdiv double %337, %339
  store double %340, ptr %14, align 8, !tbaa !9
  %341 = load double, ptr %14, align 8, !tbaa !9
  %342 = load ptr, ptr %9, align 8, !tbaa !5
  %343 = load double, ptr %342, align 8, !tbaa !9
  %344 = fcmp oge double %341, %343
  br i1 %344, label %345, label %354

345:                                              ; preds = %332
  %346 = load double, ptr %14, align 8, !tbaa !9
  %347 = load ptr, ptr %10, align 8, !tbaa !5
  %348 = load double, ptr %347, align 8, !tbaa !9
  %349 = fcmp ogt double %346, %348
  br i1 %349, label %350, label %351

350:                                              ; preds = %345
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

351:                                              ; preds = %345
  %352 = load double, ptr %14, align 8, !tbaa !9
  %353 = load ptr, ptr %9, align 8, !tbaa !5
  store double %352, ptr %353, align 8, !tbaa !9
  br label %354

354:                                              ; preds = %351, %332
  br label %369

355:                                              ; preds = %305
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
  %357 = load double, ptr %356, align 8, !tbaa !9
  %358 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 0
  %359 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %358, i32 noundef 2)
  %360 = fcmp olt double %357, %359
  br i1 %360, label %367, label %361

361:                                              ; preds = %355
  %362 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
  %363 = load double, ptr %362, align 8, !tbaa !9
  %364 = getelementptr inbounds %class.Box, ptr %16, i32 0, i32 1
  %365 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %364, i32 noundef 2)
  %366 = fcmp ogt double %363, %365
  br i1 %366, label %367, label %368

367:                                              ; preds = %361, %355
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

368:                                              ; preds = %361
  br label %369

369:                                              ; preds = %368, %354
  br label %370

370:                                              ; preds = %369, %304
  store i32 1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %371

371:                                              ; preds = %370, %367, %350, %323, %300, %273, %251, %234, %207, %184, %157, %135, %118, %91, %68, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  %372 = load i32, ptr %6, align 4
  ret i32 %372
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{i64 0, i64 24, !12}
!12 = !{!7, !7, i64 0}


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

%class.Vector = type { [3 x double] }

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZNK3Box9IntersectERK3RayRdS3_d(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %2, ptr nocapture noundef nonnull align 8 dereferenceable(8) %3, double noundef %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %class.Vector, align 8
  %7 = alloca %class.Vector, align 8
  store double -1.000000e+16, ptr %2, align 8, !tbaa !5
  store double 1.000000e+16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  %8 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !9
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = fneg double %4
  %12 = fcmp olt double %10, %11
  br i1 %12, label %13, label %41

13:                                               ; preds = %5
  %14 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 0)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = fsub double %14, %16
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fdiv double %17, %19
  %21 = load double, ptr %2, align 8, !tbaa !5
  %22 = fcmp olt double %20, %21
  br i1 %22, label %235, label %23

23:                                               ; preds = %13
  %24 = load double, ptr %3, align 8, !tbaa !5
  %25 = fcmp ugt double %20, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store double %20, ptr %3, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %26, %23
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef 0)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = fsub double %29, %31
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = fdiv double %32, %34
  %36 = load double, ptr %2, align 8, !tbaa !5
  %37 = fcmp ult double %35, %36
  br i1 %37, label %84, label %38

38:                                               ; preds = %27
  %39 = load double, ptr %3, align 8, !tbaa !5
  %40 = fcmp ogt double %35, %39
  br i1 %40, label %235, label %.sink.split

41:                                               ; preds = %5
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = fcmp ogt double %43, %4
  br i1 %44, label %45, label %73

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 24
  %47 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef 0)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = fsub double %47, %49
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = fdiv double %50, %52
  %54 = load double, ptr %2, align 8, !tbaa !5
  %55 = fcmp olt double %53, %54
  br i1 %55, label %235, label %56

56:                                               ; preds = %45
  %57 = load double, ptr %3, align 8, !tbaa !5
  %58 = fcmp ugt double %53, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store double %53, ptr %3, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %59, %56
  %61 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 0)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = fsub double %61, %63
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = fdiv double %64, %66
  %68 = load double, ptr %2, align 8, !tbaa !5
  %69 = fcmp ult double %67, %68
  br i1 %69, label %84, label %70

70:                                               ; preds = %60
  %71 = load double, ptr %3, align 8, !tbaa !5
  %72 = fcmp ogt double %67, %71
  br i1 %72, label %235, label %.sink.split

73:                                               ; preds = %41
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %75 = load double, ptr %74, align 8, !tbaa !5
  %76 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 0)
  %77 = fcmp olt double %75, %76
  br i1 %77, label %235, label %78

78:                                               ; preds = %73
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %0, i64 24
  %82 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %81, i32 noundef 0)
  %83 = fcmp ogt double %80, %82
  br i1 %83, label %235, label %84

.sink.split:                                      ; preds = %70, %38
  %.sink = phi double [ %35, %38 ], [ %67, %70 ]
  store double %.sink, ptr %2, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %.sink.split, %60, %78, %27
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %86 = load double, ptr %85, align 8, !tbaa !5
  %87 = fcmp olt double %86, %11
  br i1 %87, label %88, label %116

88:                                               ; preds = %84
  %89 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = fsub double %89, %91
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %94 = load double, ptr %93, align 8, !tbaa !5
  %95 = fdiv double %92, %94
  %96 = load double, ptr %2, align 8, !tbaa !5
  %97 = fcmp olt double %95, %96
  br i1 %97, label %235, label %98

98:                                               ; preds = %88
  %99 = load double, ptr %3, align 8, !tbaa !5
  %100 = fcmp ugt double %95, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  store double %95, ptr %3, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %101, %98
  %103 = getelementptr inbounds i8, ptr %0, i64 24
  %104 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %103, i32 noundef 1)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = fsub double %104, %106
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = fdiv double %107, %109
  %111 = load double, ptr %2, align 8, !tbaa !5
  %112 = fcmp ult double %110, %111
  br i1 %112, label %159, label %113

113:                                              ; preds = %102
  %114 = load double, ptr %3, align 8, !tbaa !5
  %115 = fcmp ogt double %110, %114
  br i1 %115, label %235, label %.sink.split95

116:                                              ; preds = %84
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = fcmp ogt double %118, %4
  br i1 %119, label %120, label %148

120:                                              ; preds = %116
  %121 = getelementptr inbounds i8, ptr %0, i64 24
  %122 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %121, i32 noundef 1)
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = fsub double %122, %124
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %127 = load double, ptr %126, align 8, !tbaa !5
  %128 = fdiv double %125, %127
  %129 = load double, ptr %2, align 8, !tbaa !5
  %130 = fcmp olt double %128, %129
  br i1 %130, label %235, label %131

131:                                              ; preds = %120
  %132 = load double, ptr %3, align 8, !tbaa !5
  %133 = fcmp ugt double %128, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %131
  store double %128, ptr %3, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %134, %131
  %136 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = fsub double %136, %138
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = fdiv double %139, %141
  %143 = load double, ptr %2, align 8, !tbaa !5
  %144 = fcmp ult double %142, %143
  br i1 %144, label %159, label %145

145:                                              ; preds = %135
  %146 = load double, ptr %3, align 8, !tbaa !5
  %147 = fcmp ogt double %142, %146
  br i1 %147, label %235, label %.sink.split95

148:                                              ; preds = %116
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %150 = load double, ptr %149, align 8, !tbaa !5
  %151 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1)
  %152 = fcmp olt double %150, %151
  br i1 %152, label %235, label %153

153:                                              ; preds = %148
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %155 = load double, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %0, i64 24
  %157 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %156, i32 noundef 1)
  %158 = fcmp ogt double %155, %157
  br i1 %158, label %235, label %159

.sink.split95:                                    ; preds = %145, %113
  %.sink96 = phi double [ %110, %113 ], [ %142, %145 ]
  store double %.sink96, ptr %2, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %.sink.split95, %135, %153, %102
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %161 = load double, ptr %160, align 8, !tbaa !5
  %162 = fcmp olt double %161, %11
  br i1 %162, label %163, label %191

163:                                              ; preds = %159
  %164 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2)
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = fsub double %164, %166
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %169 = load double, ptr %168, align 8, !tbaa !5
  %170 = fdiv double %167, %169
  %171 = load double, ptr %2, align 8, !tbaa !5
  %172 = fcmp olt double %170, %171
  br i1 %172, label %235, label %173

173:                                              ; preds = %163
  %174 = load double, ptr %3, align 8, !tbaa !5
  %175 = fcmp ugt double %170, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  store double %170, ptr %3, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %176, %173
  %178 = getelementptr inbounds i8, ptr %0, i64 24
  %179 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %178, i32 noundef 2)
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = fsub double %179, %181
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %184 = load double, ptr %183, align 8, !tbaa !5
  %185 = fdiv double %182, %184
  %186 = load double, ptr %2, align 8, !tbaa !5
  %187 = fcmp ult double %185, %186
  br i1 %187, label %234, label %188

188:                                              ; preds = %177
  %189 = load double, ptr %3, align 8, !tbaa !5
  %190 = fcmp ogt double %185, %189
  br i1 %190, label %235, label %.sink.split97

191:                                              ; preds = %159
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %193 = load double, ptr %192, align 8, !tbaa !5
  %194 = fcmp ogt double %193, %4
  br i1 %194, label %195, label %223

195:                                              ; preds = %191
  %196 = getelementptr inbounds i8, ptr %0, i64 24
  %197 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %196, i32 noundef 2)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %199 = load double, ptr %198, align 8, !tbaa !5
  %200 = fsub double %197, %199
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %202 = load double, ptr %201, align 8, !tbaa !5
  %203 = fdiv double %200, %202
  %204 = load double, ptr %2, align 8, !tbaa !5
  %205 = fcmp olt double %203, %204
  br i1 %205, label %235, label %206

206:                                              ; preds = %195
  %207 = load double, ptr %3, align 8, !tbaa !5
  %208 = fcmp ugt double %203, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %206
  store double %203, ptr %3, align 8, !tbaa !5
  br label %210

210:                                              ; preds = %209, %206
  %211 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %213 = load double, ptr %212, align 8, !tbaa !5
  %214 = fsub double %211, %213
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %216 = load double, ptr %215, align 8, !tbaa !5
  %217 = fdiv double %214, %216
  %218 = load double, ptr %2, align 8, !tbaa !5
  %219 = fcmp ult double %217, %218
  br i1 %219, label %234, label %220

220:                                              ; preds = %210
  %221 = load double, ptr %3, align 8, !tbaa !5
  %222 = fcmp ogt double %217, %221
  br i1 %222, label %235, label %.sink.split97

223:                                              ; preds = %191
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %225 = load double, ptr %224, align 8, !tbaa !5
  %226 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2)
  %227 = fcmp olt double %225, %226
  br i1 %227, label %235, label %228

228:                                              ; preds = %223
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %230 = load double, ptr %229, align 8, !tbaa !5
  %231 = getelementptr inbounds i8, ptr %0, i64 24
  %232 = call noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %231, i32 noundef 2)
  %233 = fcmp ogt double %230, %232
  br i1 %233, label %235, label %234

.sink.split97:                                    ; preds = %220, %188
  %.sink98 = phi double [ %185, %188 ], [ %217, %220 ]
  store double %.sink98, ptr %2, align 8, !tbaa !5
  br label %234

234:                                              ; preds = %.sink.split97, %210, %228, %177
  br label %235

235:                                              ; preds = %223, %228, %220, %195, %188, %163, %148, %153, %145, %120, %113, %88, %73, %78, %70, %45, %38, %13, %234
  %.0 = phi i32 [ 1, %234 ], [ 0, %13 ], [ 0, %38 ], [ 0, %45 ], [ 0, %70 ], [ 0, %78 ], [ 0, %73 ], [ 0, %88 ], [ 0, %113 ], [ 0, %120 ], [ 0, %145 ], [ 0, %153 ], [ 0, %148 ], [ 0, %163 ], [ 0, %188 ], [ 0, %195 ], [ 0, %220 ], [ 0, %228 ], [ 0, %223 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  ret i32 %.0
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}


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