; LLVM IR from Dev-XYS/Algorithms :: Graham-Scan (main)

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

%struct.point = type { i32, i32 }
%struct.segment = type { %struct.point, %struct.point }

@P = external dso_local global [100000 x %struct.point], align 16
@D = external dso_local global [100000 x %struct.segment], align 16
@S = external dso_local global [100000 x i32], align 16
@sp = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4pushi(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3popv() #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3topv() #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6subtopv() #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9directionR7segmentS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z8distanceR5pointS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5qsortii(i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.point, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.segment, align 4
  %10 = alloca %struct.segment, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %29, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %32

19:                                               ; preds = %14
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %21
  %23 = getelementptr inbounds %struct.point, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %25
  %27 = getelementptr inbounds %struct.point, ptr %26, i32 0, i32 1
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %23, ptr noundef %27)
  br label %29

29:                                               ; preds = %19
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !9

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

33:                                               ; preds = %81, %32
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %84

38:                                               ; preds = %33
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.point, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %45
  %47 = getelementptr inbounds %struct.point, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp slt i32 %43, %48
  br i1 %49, label %50, label %52

50:                                               ; preds = %38
  %51 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %51, ptr %3, align 4, !tbaa !5
  br label %80

52:                                               ; preds = %38
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.point, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !11
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %59
  %61 = getelementptr inbounds %struct.point, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = icmp eq i32 %57, %62
  br i1 %63, label %64, label %79

64:                                               ; preds = %52
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %66
  %68 = getelementptr inbounds %struct.point, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %71
  %73 = getelementptr inbounds %struct.point, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !13
  %75 = icmp slt i32 %69, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %64
  %77 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %77, ptr %3, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %76, %64
  br label %79

79:                                               ; preds = %78, %52
  br label %80

80:                                               ; preds = %79, %50
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !14

84:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %86
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %87, i64 8, i1 false), !tbaa.struct !15
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %89
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 16 @P, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @P, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %108, %84
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %111

96:                                               ; preds = %91
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %98
  %100 = getelementptr inbounds %struct.segment, ptr %99, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %100, ptr align 16 @P, i64 8, i1 false), !tbaa.struct !15
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %105
  %107 = getelementptr inbounds %struct.segment, ptr %106, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %107, ptr align 8 %103, i64 8, i1 false), !tbaa.struct !15
  br label %108

108:                                              ; preds = %96
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !5
  br label %91, !llvm.loop !16

111:                                              ; preds = %95
  %112 = load i32, ptr @n, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 1
  call void @_Z5qsortii(i32 noundef 1, i32 noundef %113)
  call void @_Z4pushi(i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %177, %111
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = load i32, ptr @n, align 4, !tbaa !5
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %180

119:                                              ; preds = %114
  %120 = load i32, ptr @sp, align 4, !tbaa !5
  %121 = icmp sge i32 %120, 2
  br i1 %121, label %122, label %175

122:                                              ; preds = %119
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %124
  %126 = call noundef i32 @_Z3topv()
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %127
  %129 = call noundef i32 @_Z9directionR7segmentS0_(ptr noundef nonnull align 4 dereferenceable(16) %125, ptr noundef nonnull align 4 dereferenceable(16) %128)
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %147

131:                                              ; preds = %122
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %133
  %135 = getelementptr inbounds %struct.point, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8, !tbaa !11
  %137 = call noundef i32 @_Z3topv()
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %138
  %140 = getelementptr inbounds %struct.point, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !11
  %142 = icmp sgt i32 %136, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %131
  %144 = call noundef i32 @_Z3popv()
  br label %146

145:                                              ; preds = %131
  br label %177

146:                                              ; preds = %143
  br label %147

147:                                              ; preds = %146, %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  br label %148

148:                                              ; preds = %171, %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %149 = call noundef i32 @_Z6subtopv()
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %150
  %152 = getelementptr inbounds %struct.segment, ptr %9, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %152, ptr align 8 %151, i64 8, i1 false), !tbaa.struct !15
  %153 = call noundef i32 @_Z3topv()
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %154
  %156 = getelementptr inbounds %struct.segment, ptr %9, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %156, ptr align 8 %155, i64 8, i1 false), !tbaa.struct !15
  %157 = call noundef i32 @_Z3topv()
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %158
  %160 = getelementptr inbounds %struct.segment, ptr %10, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %160, ptr align 8 %159, i64 8, i1 false), !tbaa.struct !15
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %162
  %164 = getelementptr inbounds %struct.segment, ptr %10, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %164, ptr align 8 %163, i64 8, i1 false), !tbaa.struct !15
  %165 = call noundef i32 @_Z9directionR7segmentS0_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %10)
  store i32 %165, ptr %8, align 4, !tbaa !5
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %168, label %170

168:                                              ; preds = %148
  %169 = call noundef i32 @_Z3popv()
  br label %170

170:                                              ; preds = %168, %148
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %8, align 4, !tbaa !5
  %173 = icmp sgt i32 %172, 0
  br i1 %173, label %148, label %174, !llvm.loop !17

174:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %175

175:                                              ; preds = %174, %119
  %176 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z4pushi(i32 noundef %176)
  br label %177

177:                                              ; preds = %175, %145
  %178 = load i32, ptr %7, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %7, align 4, !tbaa !5
  br label %114, !llvm.loop !18

180:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store double 0.000000e+00, ptr %11, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %203, %180
  %182 = load i32, ptr %12, align 4, !tbaa !5
  %183 = load i32, ptr @sp, align 4, !tbaa !5
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

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

186:                                              ; preds = %181
  %187 = load i32, ptr %12, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100000 x i32], ptr @S, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %191
  %193 = load i32, ptr %12, align 4, !tbaa !5
  %194 = sub nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100000 x i32], ptr @S, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %198
  %200 = call noundef double @_Z8distanceR5pointS0_(ptr noundef nonnull align 4 dereferenceable(8) %192, ptr noundef nonnull align 4 dereferenceable(8) %199)
  %201 = load double, ptr %11, align 8, !tbaa !19
  %202 = fadd double %201, %200
  store double %202, ptr %11, align 8, !tbaa !19
  br label %203

203:                                              ; preds = %186
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %12, align 4, !tbaa !5
  br label %181, !llvm.loop !21

206:                                              ; preds = %185
  %207 = load i32, ptr @sp, align 4, !tbaa !5
  %208 = sub nsw i32 %207, 1
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [100000 x i32], ptr @S, i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %212
  %214 = call noundef double @_Z8distanceR5pointS0_(ptr noundef nonnull align 4 dereferenceable(8) %213, ptr noundef nonnull align 4 dereferenceable(8) @P)
  %215 = load double, ptr %11, align 8, !tbaa !19
  %216 = fadd double %215, %214
  store double %216, ptr %11, align 8, !tbaa !19
  %217 = load double, ptr %11, align 8, !tbaa !19
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %217)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

declare i32 @printf(ptr noundef, ...) #5

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress norecurse 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS5point", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !10}
!15 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !10}


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

%struct.point = type { i32, i32 }
%struct.segment = type { %struct.point, %struct.point }

@P = external dso_local global [100000 x %struct.point], align 16
@D = external dso_local global [100000 x %struct.segment], align 16
@S = external dso_local local_unnamed_addr global [100000 x i32], align 16
@sp = external dso_local local_unnamed_addr global i32, align 4
@n = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4pushi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3popv() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3topv() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6subtopv() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9directionR7segmentS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z8distanceR5pointS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5qsortii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca %struct.segment, align 8
  %2 = alloca %struct.segment, align 8
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge55

.preheader45:                                     ; preds = %.lr.ph
  %6 = icmp sgt i32 %13, 1
  br i1 %6, label %.lr.ph50.preheader, label %._crit_edge55

.lr.ph50.preheader:                               ; preds = %.preheader45
  %wide.trip.count = zext nneg i32 %13 to i64
  %7 = add nsw i64 %wide.trip.count, -1
  %8 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %7, 1
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %._crit_edge.unr-lcssa, label %.lr.ph50.preheader.new

.lr.ph50.preheader.new:                           ; preds = %.lr.ph50.preheader
  %unroll_iter = and i64 %7, -2
  br label %.lr.ph50

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv
  %11 = getelementptr inbounds i8, ptr %10, i64 4
  %12 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp slt i64 %indvars.iv.next, %14
  br i1 %15, label %.lr.ph, label %.preheader45, !llvm.loop !9

._crit_edge.unr-lcssa:                            ; preds = %66, %.lr.ph50.preheader
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph50.preheader ], [ %.1.1, %66 ]
  %indvars.iv69.unr = phi i64 [ 1, %.lr.ph50.preheader ], [ %indvars.iv.next70.1, %66 ]
  %.04048.unr = phi i32 [ 0, %.lr.ph50.preheader ], [ %.1.1, %66 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph50.epil

.lr.ph50.epil:                                    ; preds = %._crit_edge.unr-lcssa
  %16 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv69.unr
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = sext i32 %.04048.unr to i64
  %19 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %18
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp slt i32 %17, %20
  %22 = trunc nuw nsw i64 %indvars.iv69.unr to i32
  br i1 %21, label %._crit_edge, label %23

23:                                               ; preds = %.lr.ph50.epil
  %24 = icmp eq i32 %17, %20
  br i1 %24, label %25, label %._crit_edge

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %16, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %19, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !13
  %30 = icmp slt i32 %27, %29
  %spec.select.epil = select i1 %30, i32 %22, i32 %.04048.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph50.epil, %23, %25, %._crit_edge.unr-lcssa
  %.1.lcssa = phi i32 [ %.1.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.04048.unr, %23 ], [ %22, %.lr.ph50.epil ], [ %spec.select.epil, %25 ]
  %31 = sext i32 %.1.lcssa to i64
  %32 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8
  %34 = load i64, ptr @P, align 16
  store i64 %34, ptr %32, align 8
  store i64 %33, ptr @P, align 16
  br i1 %6, label %.lr.ph54.preheader, label %._crit_edge55

.lr.ph54.preheader:                               ; preds = %._crit_edge
  %xtraiter98 = and i64 %7, 3
  %35 = icmp ult i64 %8, 3
  br i1 %35, label %._crit_edge55.loopexit.unr-lcssa, label %.lr.ph54.preheader.new

.lr.ph54.preheader.new:                           ; preds = %.lr.ph54.preheader
  %unroll_iter100 = and i64 %7, -4
  br label %.lr.ph54

.lr.ph50:                                         ; preds = %66, %.lr.ph50.preheader.new
  %indvars.iv69 = phi i64 [ 1, %.lr.ph50.preheader.new ], [ %indvars.iv.next70.1, %66 ]
  %.04048 = phi i32 [ 0, %.lr.ph50.preheader.new ], [ %.1.1, %66 ]
  %niter = phi i64 [ 0, %.lr.ph50.preheader.new ], [ %niter.next.1, %66 ]
  %36 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv69
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = sext i32 %.04048 to i64
  %39 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %38
  %40 = load i32, ptr %39, align 8, !tbaa !11
  %41 = icmp slt i32 %37, %40
  %42 = trunc nuw nsw i64 %indvars.iv69 to i32
  br i1 %41, label %.lr.ph50.1, label %43

43:                                               ; preds = %.lr.ph50
  %44 = icmp eq i32 %37, %40
  br i1 %44, label %45, label %.lr.ph50.1

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %36, i64 4
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %39, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !13
  %50 = icmp slt i32 %47, %49
  %spec.select = select i1 %50, i32 %42, i32 %.04048
  br label %.lr.ph50.1

.lr.ph50.1:                                       ; preds = %45, %.lr.ph50, %43
  %.1 = phi i32 [ %.04048, %43 ], [ %42, %.lr.ph50 ], [ %spec.select, %45 ]
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %51 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv.next70
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = sext i32 %.1 to i64
  %54 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %53
  %55 = load i32, ptr %54, align 8, !tbaa !11
  %56 = icmp slt i32 %52, %55
  %57 = trunc nuw nsw i64 %indvars.iv.next70 to i32
  br i1 %56, label %66, label %58

58:                                               ; preds = %.lr.ph50.1
  %59 = icmp eq i32 %52, %55
  br i1 %59, label %60, label %66

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %51, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = getelementptr inbounds i8, ptr %54, i64 4
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %65 = icmp slt i32 %62, %64
  %spec.select.1 = select i1 %65, i32 %57, i32 %.1
  br label %66

66:                                               ; preds = %60, %58, %.lr.ph50.1
  %.1.1 = phi i32 [ %.1, %58 ], [ %57, %.lr.ph50.1 ], [ %spec.select.1, %60 ]
  %indvars.iv.next70.1 = add nuw nsw i64 %indvars.iv69, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph50, !llvm.loop !14

._crit_edge55.loopexit.unr-lcssa:                 ; preds = %.lr.ph54, %.lr.ph54.preheader
  %indvars.iv72.unr = phi i64 [ 1, %.lr.ph54.preheader ], [ %indvars.iv.next73.3, %.lr.ph54 ]
  %lcmp.mod99.not = icmp eq i64 %xtraiter98, 0
  br i1 %lcmp.mod99.not, label %._crit_edge55, label %.lr.ph54.epil

.lr.ph54.epil:                                    ; preds = %._crit_edge55.loopexit.unr-lcssa, %.lr.ph54.epil
  %indvars.iv72.epil = phi i64 [ %indvars.iv.next73.epil, %.lr.ph54.epil ], [ %indvars.iv72.unr, %._crit_edge55.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph54.epil ], [ 0, %._crit_edge55.loopexit.unr-lcssa ]
  %67 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %indvars.iv72.epil
  store i64 %33, ptr %67, align 16
  %68 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv72.epil
  %69 = getelementptr inbounds i8, ptr %67, i64 8
  %70 = load i64, ptr %68, align 8
  store i64 %70, ptr %69, align 8
  %indvars.iv.next73.epil = add nuw nsw i64 %indvars.iv72.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter98
  br i1 %epil.iter.cmp.not, label %._crit_edge55, label %.lr.ph54.epil, !llvm.loop !15

._crit_edge55:                                    ; preds = %._crit_edge55.loopexit.unr-lcssa, %.lr.ph54.epil, %0, %.preheader45, %._crit_edge
  %.lcssa468487 = phi i32 [ %13, %._crit_edge ], [ %13, %.preheader45 ], [ %4, %0 ], [ %13, %.lr.ph54.epil ], [ %13, %._crit_edge55.loopexit.unr-lcssa ]
  %71 = add nsw i32 %.lcssa468487, -1
  tail call void @_Z5qsortii(i32 noundef 1, i32 noundef %71)
  tail call void @_Z4pushi(i32 noundef 0)
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = icmp sgt i32 %72, 1
  br i1 %73, label %.lr.ph58, label %.preheader

.lr.ph58:                                         ; preds = %._crit_edge55
  %74 = getelementptr inbounds i8, ptr %1, i64 8
  %75 = getelementptr inbounds i8, ptr %2, i64 8
  br label %94

.lr.ph54:                                         ; preds = %.lr.ph54, %.lr.ph54.preheader.new
  %indvars.iv72 = phi i64 [ 1, %.lr.ph54.preheader.new ], [ %indvars.iv.next73.3, %.lr.ph54 ]
  %niter101 = phi i64 [ 0, %.lr.ph54.preheader.new ], [ %niter101.next.3, %.lr.ph54 ]
  %76 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %indvars.iv72
  store i64 %33, ptr %76, align 16
  %77 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv72
  %78 = getelementptr inbounds i8, ptr %76, i64 8
  %79 = load i64, ptr %77, align 8
  store i64 %79, ptr %78, align 8
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %80 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %indvars.iv.next73
  store i64 %33, ptr %80, align 16
  %81 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv.next73
  %82 = getelementptr inbounds i8, ptr %80, i64 8
  %83 = load i64, ptr %81, align 8
  store i64 %83, ptr %82, align 8
  %indvars.iv.next73.1 = add nuw nsw i64 %indvars.iv72, 2
  %84 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %indvars.iv.next73.1
  store i64 %33, ptr %84, align 16
  %85 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv.next73.1
  %86 = getelementptr inbounds i8, ptr %84, i64 8
  %87 = load i64, ptr %85, align 8
  store i64 %87, ptr %86, align 8
  %indvars.iv.next73.2 = add nuw nsw i64 %indvars.iv72, 3
  %88 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %indvars.iv.next73.2
  store i64 %33, ptr %88, align 16
  %89 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv.next73.2
  %90 = getelementptr inbounds i8, ptr %88, i64 8
  %91 = load i64, ptr %89, align 8
  store i64 %91, ptr %90, align 8
  %indvars.iv.next73.3 = add nuw nsw i64 %indvars.iv72, 4
  %niter101.next.3 = add i64 %niter101, 4
  %niter101.ncmp.3 = icmp eq i64 %niter101.next.3, %unroll_iter100
  br i1 %niter101.ncmp.3, label %._crit_edge55.loopexit.unr-lcssa, label %.lr.ph54, !llvm.loop !17

.preheader:                                       ; preds = %136, %._crit_edge55
  %92 = load i32, ptr @sp, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 1
  br i1 %93, label %.lr.ph61, label %._crit_edge62

94:                                               ; preds = %.lr.ph58, %136
  %indvars.iv77 = phi i64 [ 1, %.lr.ph58 ], [ %indvars.iv.next78, %136 ]
  %95 = load i32, ptr @sp, align 4, !tbaa !5
  %96 = icmp sgt i32 %95, 1
  br i1 %96, label %97, label %134

97:                                               ; preds = %94
  %98 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %indvars.iv77
  %99 = call noundef i32 @_Z3topv()
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100000 x %struct.segment], ptr @D, i64 0, i64 %100
  %102 = call noundef i32 @_Z9directionR7segmentS0_(ptr noundef nonnull align 4 dereferenceable(16) %98, ptr noundef nonnull align 4 dereferenceable(16) %101)
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %114

104:                                              ; preds = %97
  %105 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv77
  %106 = load i32, ptr %105, align 8, !tbaa !11
  %107 = call noundef i32 @_Z3topv()
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %108
  %110 = load i32, ptr %109, align 8, !tbaa !11
  %111 = icmp sgt i32 %106, %110
  br i1 %111, label %112, label %136

112:                                              ; preds = %104
  %113 = call noundef i32 @_Z3popv()
  br label %114

114:                                              ; preds = %112, %97
  %115 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %indvars.iv77
  br label %116

116:                                              ; preds = %132, %114
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %117 = call noundef i32 @_Z6subtopv()
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %118
  %120 = load i64, ptr %119, align 8
  store i64 %120, ptr %1, align 8
  %121 = call noundef i32 @_Z3topv()
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8
  store i64 %124, ptr %74, align 8
  %125 = call noundef i32 @_Z3topv()
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8
  store i64 %128, ptr %2, align 8
  %129 = load i64, ptr %115, align 8
  store i64 %129, ptr %75, align 8
  %130 = call noundef i32 @_Z9directionR7segmentS0_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2)
  %131 = icmp sgt i32 %130, 0
  br i1 %131, label %132, label %.critedge

132:                                              ; preds = %116
  %133 = call noundef i32 @_Z3popv()
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  br label %116, !llvm.loop !18

.critedge:                                        ; preds = %116
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  br label %134

134:                                              ; preds = %.critedge, %94
  %135 = trunc nuw nsw i64 %indvars.iv77 to i32
  call void @_Z4pushi(i32 noundef %135)
  br label %136

136:                                              ; preds = %104, %134
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %137 = load i32, ptr @n, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = icmp slt i64 %indvars.iv.next78, %138
  br i1 %139, label %94, label %.preheader, !llvm.loop !19

._crit_edge62:                                    ; preds = %.lr.ph61, %.preheader
  %.035.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %159, %.lr.ph61 ]
  %.lcssa = phi i32 [ %92, %.preheader ], [ %160, %.lr.ph61 ]
  %140 = add nsw i32 %.lcssa, -1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100000 x i32], ptr @S, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %144
  %146 = call noundef double @_Z8distanceR5pointS0_(ptr noundef nonnull align 4 dereferenceable(8) %145, ptr noundef nonnull align 4 dereferenceable(8) @P)
  %147 = fadd double %.035.lcssa, %146
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %147)
  ret i32 0

.lr.ph61:                                         ; preds = %.preheader, %.lr.ph61
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %.lr.ph61 ], [ 1, %.preheader ]
  %.03559 = phi double [ %159, %.lr.ph61 ], [ 0.000000e+00, %.preheader ]
  %149 = getelementptr inbounds [100000 x i32], ptr @S, i64 0, i64 %indvars.iv80
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %151
  %153 = add nsw i64 %indvars.iv80, -1
  %154 = getelementptr inbounds [100000 x i32], ptr @S, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100000 x %struct.point], ptr @P, i64 0, i64 %156
  %158 = call noundef double @_Z8distanceR5pointS0_(ptr noundef nonnull align 4 dereferenceable(8) %152, ptr noundef nonnull align 4 dereferenceable(8) %157)
  %159 = fadd double %.03559, %158
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %160 = load i32, ptr @sp, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next81, %161
  br i1 %162, label %.lr.ph61, label %._crit_edge62, !llvm.loop !20
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 = { nofree 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 #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS5point", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass