; LLVM IR from doyubkim/fluid-engine-dev :: src/jet/box2.ll (ZNK3jet4Box217closestPointLocalERKNS_6VectorIdLm2EEE)

; 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.jet::Vector" = type { double, double }
%"class.jet::Plane2" = type { %"class.jet::Surface2.base", %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Surface2.base" = type <{ ptr, %"class.jet::Transform2", i8 }>
%"class.jet::Transform2" = type { %"class.jet::Vector", double, double, double }
%"class.jet::Box2" = type { %"class.jet::Surface2.base", %"class.jet::BoundingBox" }
%"class.jet::BoundingBox" = type { %"class.jet::Vector", %"class.jet::Vector" }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet4Box217closestPointLocalERKNS_6VectorIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [4 x %"class.jet::Plane2"], align 16
  %8 = alloca ptr, align 8
  %9 = alloca %"class.jet::Vector", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.jet::Transform2", align 8
  %13 = alloca %"class.jet::Vector", align 8
  %14 = alloca %"class.jet::Transform2", align 8
  %15 = alloca %"class.jet::Vector", align 8
  %16 = alloca %"class.jet::Transform2", align 8
  %17 = alloca %"class.jet::Vector", align 8
  %18 = alloca %"class.jet::Transform2", align 8
  %19 = alloca i1, align 1
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.jet::Vector", align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  %25 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE8containsERKNS_6VectorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  br i1 %27, label %28, label %166

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 352, ptr %7) #6
  store i1 true, ptr %19, align 1
  store ptr %7, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  invoke void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 1.000000e+00, double noundef 0.000000e+00)
          to label %29 unwind label %62

29:                                               ; preds = %28
  %30 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %31 = getelementptr inbounds %"class.jet::BoundingBox", ptr %30, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %32 unwind label %66

32:                                               ; preds = %29
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(40) %12, i1 noundef zeroext false)
          to label %33 unwind label %66

33:                                               ; preds = %32
  %34 = getelementptr inbounds %"class.jet::Plane2", ptr %7, i64 1
  store ptr %34, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  invoke void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef 0.000000e+00, double noundef 1.000000e+00)
          to label %35 unwind label %70

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %37 = getelementptr inbounds %"class.jet::BoundingBox", ptr %36, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %38 unwind label %74

38:                                               ; preds = %35
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %34, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(40) %14, i1 noundef zeroext false)
          to label %39 unwind label %74

39:                                               ; preds = %38
  %40 = getelementptr inbounds %"class.jet::Plane2", ptr %7, i64 2
  store ptr %40, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  invoke void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef -1.000000e+00, double noundef 0.000000e+00)
          to label %41 unwind label %78

41:                                               ; preds = %39
  %42 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %43 = getelementptr inbounds %"class.jet::BoundingBox", ptr %42, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %44 unwind label %82

44:                                               ; preds = %41
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %40, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(40) %16, i1 noundef zeroext false)
          to label %45 unwind label %82

45:                                               ; preds = %44
  %46 = getelementptr inbounds %"class.jet::Plane2", ptr %7, i64 3
  store ptr %46, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  invoke void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 0.000000e+00, double noundef -1.000000e+00)
          to label %47 unwind label %86

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %49 = getelementptr inbounds %"class.jet::BoundingBox", ptr %48, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %50 unwind label %90

50:                                               ; preds = %47
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %46, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(40) %18, i1 noundef zeroext false)
          to label %51 unwind label %90

51:                                               ; preds = %50
  store i1 false, ptr %19, align 1
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %52 = getelementptr inbounds [4 x %"class.jet::Plane2"], ptr %7, i64 0, i64 0
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(49) %52, ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %54 unwind label %111

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = invoke noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %55)
          to label %57 unwind label %115

57:                                               ; preds = %54
  store double %56, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %144, %57
  %59 = load i32, ptr %21, align 4, !tbaa !11
  %60 = icmp slt i32 %59, 4
  br i1 %60, label %119, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %148

62:                                               ; preds = %28
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  br label %100

66:                                               ; preds = %32, %29
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  br label %99

70:                                               ; preds = %33
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  br label %98

74:                                               ; preds = %38, %35
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  br label %97

78:                                               ; preds = %39
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %10, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %11, align 4
  br label %96

82:                                               ; preds = %44, %41
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %10, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %11, align 4
  br label %95

86:                                               ; preds = %45
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %10, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %11, align 4
  br label %94

90:                                               ; preds = %50, %47
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %10, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %94

94:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %95

95:                                               ; preds = %94, %82
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #6
  br label %96

96:                                               ; preds = %95, %78
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %97

97:                                               ; preds = %96, %74
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  br label %98

98:                                               ; preds = %97, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %99

99:                                               ; preds = %98, %66
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  br label %100

100:                                              ; preds = %99, %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %101 = load i1, ptr %19, align 1
  br i1 %101, label %102, label %110

102:                                              ; preds = %100
  %103 = load ptr, ptr %8, align 8
  %104 = icmp eq ptr %7, %103
  br i1 %104, label %109, label %105

105:                                              ; preds = %105, %102
  %106 = phi ptr [ %103, %102 ], [ %107, %105 ]
  %107 = getelementptr inbounds %"class.jet::Plane2", ptr %106, i64 -1
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %107) #6
  %108 = icmp eq ptr %107, %7
  br i1 %108, label %109, label %105

109:                                              ; preds = %105, %102
  br label %110

110:                                              ; preds = %109, %100
  br label %165

111:                                              ; preds = %51
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %10, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %11, align 4
  br label %157

115:                                              ; preds = %54
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %10, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %11, align 4
  br label %151

119:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %120 = load i32, ptr %21, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [4 x %"class.jet::Plane2"], ptr %7, i64 0, i64 %121
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(49) %122, ptr noundef nonnull align 8 dereferenceable(16) %123)
          to label %124 unwind label %135

124:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = invoke noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %125)
          to label %127 unwind label %139

127:                                              ; preds = %124
  store double %126, ptr %23, align 8, !tbaa !9
  %128 = load double, ptr %23, align 8, !tbaa !9
  %129 = load double, ptr %20, align 8, !tbaa !9
  %130 = fcmp olt double %128, %129
  br i1 %130, label %131, label %143

131:                                              ; preds = %127
  %132 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %133 unwind label %139

133:                                              ; preds = %131
  %134 = load double, ptr %23, align 8, !tbaa !9
  store double %134, ptr %20, align 8, !tbaa !9
  br label %143

135:                                              ; preds = %119
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %10, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %11, align 4
  br label %147

139:                                              ; preds = %131, %124
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %10, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %147

143:                                              ; preds = %133, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %21, align 4, !tbaa !11
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %21, align 4, !tbaa !11
  br label %58, !llvm.loop !13

147:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %151

148:                                              ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %149 = getelementptr inbounds [4 x %"class.jet::Plane2"], ptr %7, i32 0, i32 0
  %150 = getelementptr inbounds %"class.jet::Plane2", ptr %149, i64 4
  br label %152

151:                                              ; preds = %147, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %157

152:                                              ; preds = %152, %148
  %153 = phi ptr [ %150, %148 ], [ %154, %152 ]
  %154 = getelementptr inbounds %"class.jet::Plane2", ptr %153, i64 -1
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %154) #6
  %155 = icmp eq ptr %154, %149
  br i1 %155, label %156, label %152

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 352, ptr %7) #6
  br label %172

157:                                              ; preds = %151, %111
  %158 = getelementptr inbounds [4 x %"class.jet::Plane2"], ptr %7, i32 0, i32 0
  %159 = getelementptr inbounds %"class.jet::Plane2", ptr %158, i64 4
  br label %160

160:                                              ; preds = %160, %157
  %161 = phi ptr [ %159, %157 ], [ %162, %160 ]
  %162 = getelementptr inbounds %"class.jet::Plane2", ptr %161, i64 -1
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %162) #6
  %163 = icmp eq ptr %162, %158
  br i1 %163, label %164, label %160

164:                                              ; preds = %160
  br label %165

165:                                              ; preds = %164, %110
  call void @llvm.lifetime.end.p0(i64 352, ptr %7) #6
  br label %173

166:                                              ; preds = %3
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %169 = getelementptr inbounds %"class.jet::BoundingBox", ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds %"class.jet::Box2", ptr %24, i32 0, i32 1
  %171 = getelementptr inbounds %"class.jet::BoundingBox", ptr %170, i32 0, i32 1
  call void @_ZN3jet5clampIdEENS_6VectorIT_Lm2EEERKS3_S5_S5_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %167, ptr noundef nonnull align 8 dereferenceable(16) %169, ptr noundef nonnull align 8 dereferenceable(16) %171)
  br label %172

172:                                              ; preds = %166, %156
  ret void

173:                                              ; preds = %165
  %174 = load ptr, ptr %10, align 8
  %175 = load i32, ptr %11, align 4
  %176 = insertvalue { ptr, i32 } poison, ptr %174, 0
  %177 = insertvalue { ptr, i32 } %176, i32 %175, 1
  resume { ptr, i32 } %177
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE8containsERKNS_6VectorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) unnamed_addr #4

declare void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet5clampIdEENS_6VectorIT_Lm2EEERKS3_S5_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: nounwind
declare void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(49)) unnamed_addr #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !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.jet::Vector" = type { double, double }
%"class.jet::Plane2" = type { %"class.jet::Surface2.base", %"class.jet::Vector", %"class.jet::Vector" }
%"class.jet::Surface2.base" = type <{ ptr, %"class.jet::Transform2", i8 }>
%"class.jet::Transform2" = type { %"class.jet::Vector", double, double, double }

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3jet4Box217closestPointLocalERKNS_6VectorIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca [4 x %"class.jet::Plane2"], align 16
  %5 = alloca %"class.jet::Vector", align 8
  %6 = alloca %"class.jet::Transform2", align 8
  %7 = alloca %"class.jet::Vector", align 8
  %8 = alloca %"class.jet::Transform2", align 8
  %9 = alloca %"class.jet::Vector", align 8
  %10 = alloca %"class.jet::Transform2", align 8
  %11 = alloca %"class.jet::Vector", align 8
  %12 = alloca %"class.jet::Transform2", align 8
  %13 = alloca %"class.jet::Vector", align 8
  %14 = getelementptr inbounds i8, ptr %1, i64 56
  %15 = tail call noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE8containsERKNS_6VectorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %15, label %16, label %75

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 352, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %17 = getelementptr inbounds i8, ptr %1, i64 72
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  call void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %4, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(40) %6, i1 noundef zeroext false)
  %18 = getelementptr inbounds i8, ptr %4, i64 88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 0.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %19 unwind label %29

19:                                               ; preds = %16
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %18, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(40) %8, i1 noundef zeroext false)
          to label %20 unwind label %29

20:                                               ; preds = %19
  %21 = getelementptr inbounds i8, ptr %4, i64 176
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef -1.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %22 unwind label %31

22:                                               ; preds = %20
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %21, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(40) %10, i1 noundef zeroext false)
          to label %23 unwind label %31

23:                                               ; preds = %22
  %24 = getelementptr inbounds i8, ptr %4, i64 264
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  invoke void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %25 unwind label %33

25:                                               ; preds = %23
  invoke void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88) %24, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(40) %12, i1 noundef zeroext false)
          to label %26 unwind label %33

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  invoke void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(49) %4, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %27 unwind label %41

27:                                               ; preds = %26
  %28 = invoke noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %.preheader.preheader unwind label %43

.preheader.preheader:                             ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(49) %18, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %45 unwind label %51

29:                                               ; preds = %19, %16
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %36

31:                                               ; preds = %22, %20
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %25, %23
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  %.0 = phi ptr [ %24, %33 ], [ %21, %31 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %36

36:                                               ; preds = %29, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %35 ], [ %30, %29 ]
  %.1 = phi ptr [ %.0, %35 ], [ %18, %29 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %37

37:                                               ; preds = %36, %37
  %38 = phi ptr [ %39, %37 ], [ %.1, %36 ]
  %39 = getelementptr inbounds i8, ptr %38, i64 -88
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %39) #6
  %40 = icmp eq ptr %39, %4
  br i1 %40, label %.loopexit, label %37

41:                                               ; preds = %26
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

43:                                               ; preds = %27
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

45:                                               ; preds = %.preheader.preheader
  %46 = invoke noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %47 unwind label %53

47:                                               ; preds = %45
  %48 = fcmp olt double %46, %28
  br i1 %48, label %49, label %.preheader.1

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %.preheader.1 unwind label %53

51:                                               ; preds = %.preheader.2, %.preheader.1, %.preheader.preheader
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %71

53:                                               ; preds = %65, %61, %59, %55, %49, %45
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %71

.preheader.1:                                     ; preds = %49, %47
  %.119 = phi double [ %28, %47 ], [ %46, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(49) %21, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %55 unwind label %51

55:                                               ; preds = %.preheader.1
  %56 = invoke noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %57 unwind label %53

57:                                               ; preds = %55
  %58 = fcmp olt double %56, %.119
  br i1 %58, label %59, label %.preheader.2

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %.preheader.2 unwind label %53

.preheader.2:                                     ; preds = %59, %57
  %.119.1 = phi double [ %.119, %57 ], [ %56, %59 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  invoke void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind nonnull writable sret(%"class.jet::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(49) %24, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %61 unwind label %51

61:                                               ; preds = %.preheader.2
  %62 = invoke noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %63 unwind label %53

63:                                               ; preds = %61
  %64 = fcmp olt double %62, %.119.1
  br i1 %64, label %65, label %67

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %67 unwind label %53

67:                                               ; preds = %65, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %68 = getelementptr inbounds i8, ptr %4, i64 264
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %68) #6
  %69 = getelementptr inbounds i8, ptr %4, i64 176
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %69) #6
  %70 = getelementptr inbounds i8, ptr %4, i64 88
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %70) #6
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #6
  call void @llvm.lifetime.end.p0(i64 352, ptr nonnull %4) #6
  br label %77

71:                                               ; preds = %53, %51
  %.pn35 = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %43, %71, %41
  %.pn35.pn.pn = phi { ptr, i32 } [ %42, %41 ], [ %.pn35, %71 ], [ %44, %43 ]
  %72 = getelementptr inbounds i8, ptr %4, i64 264
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %72) #6
  %73 = getelementptr inbounds i8, ptr %4, i64 176
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %73) #6
  %74 = getelementptr inbounds i8, ptr %4, i64 88
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %74) #6
  call void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #6
  br label %.loopexit

.loopexit:                                        ; preds = %37, %.loopexit.loopexit
  %.pn35.pn.pn.pn = phi { ptr, i32 } [ %.pn35.pn.pn, %.loopexit.loopexit ], [ %.pn.pn, %37 ]
  call void @llvm.lifetime.end.p0(i64 352, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn35.pn.pn.pn

75:                                               ; preds = %3
  %76 = getelementptr inbounds i8, ptr %1, i64 72
  tail call void @_ZN3jet5clampIdEENS_6VectorIT_Lm2EEERKS3_S5_S5_(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %76)
  br label %77

77:                                               ; preds = %75, %67
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3jet11BoundingBoxIdLm2EE8containsERKNS_6VectorIdLm2EEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3jet10Transform2C2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare void @_ZN3jet6Plane2C1ERKNS_6VectorIdLm2EEES4_RKNS_10Transform2Eb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) unnamed_addr #4

declare void @_ZNK3jet8Surface212closestPointERKNS_6VectorIdLm2EEE(ptr dead_on_unwind writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3jet6VectorIdLm2EE17distanceSquaredToERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3jet6VectorIdLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet5clampIdEENS_6VectorIT_Lm2EEERKS3_S5_S5_(ptr dead_on_unwind noalias writable sret(%"class.jet::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3jet8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(49)) unnamed_addr #5

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


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