; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Isect.ll (Z12R3IntersectsRK6R3LineRK5R3BoxP7R3Point)

; 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.R3Point = type { [3 x double] }

@RN_EPSILON = external global double, align 8
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1

declare noundef i32 @_Z10R3ContainsRK5R3BoxRK7R3Point(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #0

declare void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsPositivedd(double noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12R3IntersectsRK6R3LineRK5R3BoxP7R3Point(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %2) #4 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.R3Point, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %18)
  %20 = call noundef i32 @_Z10R3ContainsRK5R3BoxRK7R3Point(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(24) %19)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %31

22:                                               ; preds = %3
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %26)
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %27)
  br label %30

30:                                               ; preds = %25, %22
  store i32 4, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %218

31:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %202, %31
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = icmp sle i32 %33, 2
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 2, ptr %11, align 4
  br label %205

36:                                               ; preds = %32
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %37)
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %38, i32 noundef %39)
  %41 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %42 = call noundef i32 @_Z12RNIsPositivedd(double noundef %40, double noundef %41)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %60

44:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %45)
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef %47)
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %49)
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef %51)
  %53 = fsub double %48, %52
  store double %53, ptr %13, align 8, !tbaa !11
  %54 = load double, ptr %13, align 8, !tbaa !11
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %55)
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %56, i32 noundef %57)
  %59 = fdiv double %54, %58
  store double %59, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %86

60:                                               ; preds = %36
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %61)
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %62, i32 noundef %63)
  %65 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %66 = call noundef i32 @_Z12RNIsNegativedd(double noundef %64, double noundef %65)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %84

68:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %69)
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %70, i32 noundef %71)
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef %75)
  %77 = fsub double %72, %76
  store double %77, ptr %14, align 8, !tbaa !11
  %78 = load double, ptr %14, align 8, !tbaa !11
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %79)
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef %81)
  %83 = fdiv double %78, %82
  store double %83, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %85

84:                                               ; preds = %60
  br label %202

85:                                               ; preds = %68
  br label %86

86:                                               ; preds = %85, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  %89 = srem i32 %88, 3
  store i32 %89, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = add nsw i32 %90, 2
  %92 = srem i32 %91, 3
  store i32 %92, ptr %16, align 4, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %93)
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %94, i32 noundef %95)
  %97 = fcmp ogt double %96, 0.000000e+00
  br i1 %97, label %98, label %103

98:                                               ; preds = %86
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %99)
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %100, i32 noundef %101)
  br label %108

103:                                              ; preds = %86
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %104)
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %105, i32 noundef %106)
  br label %108

108:                                              ; preds = %103, %98
  %109 = phi double [ %102, %98 ], [ %107, %103 ]
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %110)
  store double %109, ptr %111, align 8, !tbaa !11
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %112)
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %115)
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %116, i32 noundef %117)
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %119)
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %120, i32 noundef %121)
  %123 = load double, ptr %10, align 8, !tbaa !11
  %124 = call double @llvm.fmuladd.f64(double %122, double %123, double %118)
  %125 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %126 = call noundef i32 @_Z9RNIsEqualddd(double noundef %114, double noundef %124, double noundef %125)
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %129, label %128

128:                                              ; preds = %108
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 520, ptr noundef @.str.5)
  br label %129

129:                                              ; preds = %128, %108
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %130)
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %131, i32 noundef %132)
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %134)
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %135, i32 noundef %136)
  %138 = load double, ptr %10, align 8, !tbaa !11
  %139 = call double @llvm.fmuladd.f64(double %137, double %138, double %133)
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %140)
  store double %139, ptr %141, align 8, !tbaa !11
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %142)
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %143, i32 noundef %144)
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %146)
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %147, i32 noundef %148)
  %150 = load double, ptr %10, align 8, !tbaa !11
  %151 = call double @llvm.fmuladd.f64(double %149, double %150, double %145)
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %152)
  store double %151, ptr %153, align 8, !tbaa !11
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %154)
  %156 = load double, ptr %155, align 8, !tbaa !11
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %157)
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %158, i32 noundef %159)
  %161 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %162 = call noundef i32 @_Z15RNIsLessOrEqualddd(double noundef %156, double noundef %160, double noundef %161)
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %198

164:                                              ; preds = %129
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %165)
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %168)
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %169, i32 noundef %170)
  %172 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %173 = call noundef i32 @_Z18RNIsGreaterOrEqualddd(double noundef %167, double noundef %171, double noundef %172)
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %198

175:                                              ; preds = %164
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %176)
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %179)
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %180, i32 noundef %181)
  %183 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %184 = call noundef i32 @_Z15RNIsLessOrEqualddd(double noundef %178, double noundef %182, double noundef %183)
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %198

186:                                              ; preds = %175
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %187)
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %190)
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %191, i32 noundef %192)
  %194 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %195 = call noundef i32 @_Z18RNIsGreaterOrEqualddd(double noundef %189, double noundef %193, double noundef %194)
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %198

197:                                              ; preds = %186
  store i32 4, ptr %8, align 4, !tbaa !9
  store i32 2, ptr %11, align 4
  br label %199

198:                                              ; preds = %186, %175, %164, %129
  store i32 0, ptr %11, align 4
  br label %199

199:                                              ; preds = %198, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %200 = load i32, ptr %11, align 4
  switch i32 %200, label %205 [
    i32 0, label %201
  ]

201:                                              ; preds = %199
  br label %202

202:                                              ; preds = %201, %84
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %12, align 4, !tbaa !9
  br label %32, !llvm.loop !13

205:                                              ; preds = %199, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %8, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %216

209:                                              ; preds = %206
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = icmp ne ptr %210, null
  br i1 %211, label %212, label %215

212:                                              ; preds = %209
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %213, ptr noundef nonnull align 8 dereferenceable(24) %9)
  br label %215

215:                                              ; preds = %212, %209
  br label %216

216:                                              ; preds = %215, %206
  %217 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %217, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %218

218:                                              ; preds = %216, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %219 = load i32, ptr %4, align 4
  ret i32 %219
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsNegativedd(double noundef, double noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z9RNIsEqualddd(double noundef, double noundef, double noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z15RNIsLessOrEqualddd(double noundef, double noundef, double noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18RNIsGreaterOrEqualddd(double noundef, double noundef, double noundef) #5

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

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

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


; 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.R3Point = type { [3 x double] }

@RN_EPSILON = external local_unnamed_addr global double, align 8
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [89 x i8], align 1

declare noundef i32 @_Z10R3ContainsRK5R3BoxRK7R3Point(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #0

declare void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsPositivedd(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 5) i32 @_Z12R3IntersectsRK6R3LineRK5R3BoxP7R3Point(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca %class.R3Point, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %5 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %6 = call noundef i32 @_Z10R3ContainsRK5R3BoxRK7R3Point(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %.preheader, label %7

7:                                                ; preds = %3
  %.not83 = icmp eq ptr %2, null
  br i1 %.not83, label %.thread86, label %8

8:                                                ; preds = %7
  %9 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  br label %.thread86.sink.split

.preheader:                                       ; preds = %3, %.thread
  %.07393 = phi i32 [ %.pre-phi, %.thread ], [ 0, %3 ]
  %10 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %11 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %.07393)
  %12 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %13 = call noundef i32 @_Z12RNIsPositivedd(double noundef %11, double noundef %12)
  %.not76 = icmp eq i32 %13, 0
  br i1 %.not76, label %16, label %14

14:                                               ; preds = %.preheader
  %15 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  br label %23

16:                                               ; preds = %.preheader
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %18 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %.07393)
  %19 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %20 = call noundef i32 @_Z12RNIsNegativedd(double noundef %18, double noundef %19)
  %.not77 = icmp eq i32 %20, 0
  br i1 %.not77, label %..thread_crit_edge, label %21

..thread_crit_edge:                               ; preds = %16
  %.pre = add nuw nsw i32 %.07393, 1
  br label %.thread

21:                                               ; preds = %16
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  br label %23

23:                                               ; preds = %21, %14
  %.sink = phi ptr [ %22, %21 ], [ %15, %14 ]
  %24 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %.sink, i32 noundef %.07393)
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %26 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef %.07393)
  %27 = fsub double %24, %26
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %29 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef %.07393)
  %30 = fdiv double %27, %29
  %31 = add nuw nsw i32 %.07393, 1
  %.cmp.not = icmp eq i32 %.07393, 2
  %32 = select i1 %.cmp.not, i32 0, i32 %31
  %.urem90 = add nsw i32 %.07393, -1
  %.cmp91 = icmp eq i32 %.07393, 0
  %33 = select i1 %.cmp91, i32 2, i32 %.urem90
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %35 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %34, i32 noundef %.07393)
  %36 = fcmp ogt double %35, 0.000000e+00
  br i1 %36, label %37, label %39

37:                                               ; preds = %23
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  br label %41

39:                                               ; preds = %23
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  br label %41

41:                                               ; preds = %39, %37
  %.sink98 = phi ptr [ %40, %39 ], [ %38, %37 ]
  %42 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %.sink98, i32 noundef %.07393)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.07393)
  store double %42, ptr %43, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %.07393)
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %47 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef %.07393)
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %49 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %48, i32 noundef %.07393)
  %50 = call double @llvm.fmuladd.f64(double %49, double %30, double %47)
  %51 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %52 = call noundef i32 @_Z9RNIsEqualddd(double noundef %45, double noundef %50, double noundef %51)
  %.not78 = icmp eq i32 %52, 0
  br i1 %.not78, label %53, label %54

53:                                               ; preds = %41
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 520, ptr noundef nonnull @.str.5)
  br label %54

54:                                               ; preds = %53, %41
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %56 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %55, i32 noundef %32)
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %58 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %57, i32 noundef %32)
  %59 = call double @llvm.fmuladd.f64(double %58, double %30, double %56)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %32)
  store double %59, ptr %60, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line5PointEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %62 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %61, i32 noundef %33)
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Line6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %64 = call noundef double @_ZNK8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %63, i32 noundef %33)
  %65 = call double @llvm.fmuladd.f64(double %64, double %30, double %62)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %33)
  store double %65, ptr %66, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %32)
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %70 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %32)
  %71 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %72 = call noundef i32 @_Z15RNIsLessOrEqualddd(double noundef %68, double noundef %70, double noundef %71)
  %.not79 = icmp eq i32 %72, 0
  br i1 %.not79, label %.thread, label %73

73:                                               ; preds = %54
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %32)
  %75 = load double, ptr %74, align 8, !tbaa !5
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %77 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %76, i32 noundef %32)
  %78 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %79 = call noundef i32 @_Z18RNIsGreaterOrEqualddd(double noundef %75, double noundef %77, double noundef %78)
  %.not80 = icmp eq i32 %79, 0
  br i1 %.not80, label %.thread, label %80

80:                                               ; preds = %73
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %33)
  %82 = load double, ptr %81, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %84 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %83, i32 noundef %33)
  %85 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %86 = call noundef i32 @_Z15RNIsLessOrEqualddd(double noundef %82, double noundef %84, double noundef %85)
  %.not81 = icmp eq i32 %86, 0
  br i1 %.not81, label %.thread, label %87

87:                                               ; preds = %80
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %33)
  %89 = load double, ptr %88, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %91 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %90, i32 noundef %33)
  %92 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %93 = call noundef i32 @_Z18RNIsGreaterOrEqualddd(double noundef %89, double noundef %91, double noundef %92)
  %.not82 = icmp eq i32 %93, 0
  br i1 %.not82, label %.thread, label %94

.thread:                                          ; preds = %..thread_crit_edge, %87, %80, %73, %54
  %.pre-phi = phi i32 [ %.pre, %..thread_crit_edge ], [ %31, %87 ], [ %31, %80 ], [ %31, %73 ], [ %31, %54 ]
  %exitcond.not = icmp eq i32 %.pre-phi, 3
  br i1 %exitcond.not, label %.thread86, label %.preheader, !llvm.loop !9

94:                                               ; preds = %87
  %.not92 = icmp eq ptr %2, null
  br i1 %.not92, label %.thread86, label %.thread86.sink.split

.thread86.sink.split:                             ; preds = %94, %8
  %.sink99 = phi ptr [ %9, %8 ], [ %4, %94 ]
  %95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %.sink99)
  br label %.thread86

.thread86:                                        ; preds = %.thread, %.thread86.sink.split, %94, %7
  %.0 = phi i32 [ 4, %7 ], [ 4, %94 ], [ 4, %.thread86.sink.split ], [ 0, %.thread ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret i32 %.0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MinEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsNegativedd(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Box3MaxEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z9RNIsEqualddd(double noundef, double noundef, double noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z15RNIsLessOrEqualddd(double noundef, double noundef, double noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18RNIsGreaterOrEqualddd(double noundef, double noundef, double noundef) local_unnamed_addr #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass