; LLVM IR from tangjz/acm-icpc :: hdu (6419)

; 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 { double, double }
%struct.Segment = type { %struct.Point, %struct.Point }
%struct.Sector = type { %struct.Point, %struct.Point, %struct.Point }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@rad = external dso_local global i32, align 4
@otot = external dso_local global i32, align 4
@btot = external dso_local global i32, align 4
@ord = external dso_local global [209 x i32], align 16
@ans = external dso_local global [209 x double], align 16
@p = external dso_local global [209 x %struct.Point], align 16
@q = external dso_local global [209 x %struct.Point], align 16
@seq = external dso_local global [837 x %struct.Point], align 16
@a = external dso_local global [209 x %struct.Segment], align 16
@b = external dso_local global [209 x %struct.Sector], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZZ4mainE3que = external hidden global [3 x %struct.Point], align 16
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12getFootPoint7Segment5PointRS0_(ptr noundef byval(%struct.Segment) align 8, double, double, ptr noundef nonnull align 8 dereferenceable(16)) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 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) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15getIntersection7SegmentS_R5Point(ptr noundef byval(%struct.Segment) align 8, ptr noundef byval(%struct.Segment) align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12getFootPoint6Sector5PointRS0_(ptr noundef byval(%struct.Sector) align 8, double, double, ptr noundef nonnull align 8 dereferenceable(16)) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15getIntersection6Sector7SegmentP5Point(ptr noundef byval(%struct.Sector) align 8, ptr noundef byval(%struct.Segment) align 8, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15getIntersection6SectorS_P5Point(ptr noundef byval(%struct.Sector) align 8, ptr noundef byval(%struct.Sector) align 8, ptr noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7isValid5Point(double, double) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.Point, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca double, align 8
  %12 = alloca %struct.Segment, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.Point, align 8
  %15 = alloca %struct.Point, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.Segment, align 8
  %18 = alloca %struct.Segment, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca %struct.Segment, align 8
  %24 = alloca %struct.Point, align 8
  %25 = alloca %struct.Point, align 8
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca %struct.Point, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %struct.Point, align 8
  %33 = alloca %struct.Point, align 8
  %34 = alloca %struct.Sector, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %struct.Sector, align 8
  %39 = alloca %struct.Segment, align 8
  %40 = alloca i32, align 4
  %41 = alloca %struct.Point, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %struct.Sector, align 8
  %45 = alloca %struct.Sector, align 8
  %46 = alloca i32, align 4
  %47 = alloca %struct.Point, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i8, align 1
  %51 = alloca %struct.Sector, align 8
  %52 = alloca %struct.Point, align 8
  %53 = alloca %struct.Point, align 8
  %54 = alloca i32, align 4
  %55 = alloca double, align 8
  %56 = alloca %struct.Point, align 8
  %57 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %59

59:                                               ; preds = %570, %0
  %60 = load i32, ptr @t, align 4, !tbaa !5
  %61 = add nsw i32 %60, -1
  store i32 %61, ptr @t, align 4, !tbaa !5
  %62 = icmp ne i32 %60, 0
  br i1 %62, label %63, label %571

63:                                               ; preds = %59
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @n, ptr noundef @m, ptr noundef @rad)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %74, %63
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %77

70:                                               ; preds = %65
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %72
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %73)
  br label %74

74:                                               ; preds = %70
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %2, align 4, !tbaa !5
  br label %65, !llvm.loop !9

77:                                               ; preds = %69
  store i32 0, ptr @otot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %109, %77
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = load i32, ptr @m, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %112

83:                                               ; preds = %78
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %85
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 16 %89, i64 16, i1 false), !tbaa.struct !11
  %90 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 0
  %91 = load double, ptr %90, align 8
  %92 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 1
  %93 = load double, ptr %92, align 8
  %94 = call noundef zeroext i1 @_Z7isValid5Point(double %91, double %93)
  br i1 %94, label %95, label %99

95:                                               ; preds = %83
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %97
  store double 0.000000e+00, ptr %98, align 8, !tbaa !12
  br label %108

99:                                               ; preds = %83
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %101
  store double 1.000000e+10, ptr %102, align 8, !tbaa !12
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = load i32, ptr @otot, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr @otot, align 4, !tbaa !5
  %106 = sext i32 %104 to i64
  %107 = getelementptr inbounds [209 x i32], ptr @ord, i64 0, i64 %106
  store i32 %103, ptr %107, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %99, %95
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %3, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %3, align 4, !tbaa !5
  br label %78, !llvm.loop !14

112:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %314, %112
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %317

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  %121 = load i32, ptr @n, align 4, !tbaa !5
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %123, label %126

123:                                              ; preds = %118
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  br label %127

126:                                              ; preds = %118
  br label %127

127:                                              ; preds = %126, %123
  %128 = phi i32 [ %125, %123 ], [ 0, %126 ]
  store i32 %128, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %130
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %133
  %135 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 8 dereferenceable(16) %134)
  %136 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %137 = extractvalue { double, double } %135, 0
  store double %137, ptr %136, align 8
  %138 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %139 = extractvalue { double, double } %135, 1
  store double %139, ptr %138, align 8
  %140 = call { double, double } @_ZNK5Point9shiftLeftEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %141 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %142 = extractvalue { double, double } %140, 0
  store double %142, ptr %141, align 8
  %143 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %144 = extractvalue { double, double } %140, 1
  store double %144, ptr %143, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %145 = load i32, ptr @rad, align 4, !tbaa !5
  %146 = sitofp i32 %145 to double
  %147 = call noundef double @_ZNK5Point3lenEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %148 = fdiv double %146, %147
  store double %148, ptr %11, align 8, !tbaa !12
  %149 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %150 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %151 = extractvalue { double, double } %149, 0
  store double %151, ptr %150, align 8
  %152 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %153 = extractvalue { double, double } %149, 1
  store double %153, ptr %152, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  %154 = getelementptr inbounds %struct.Segment, ptr %12, i32 0, i32 0
  %155 = load i32, ptr %5, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %156
  %158 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %157, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %159 = getelementptr inbounds { double, double }, ptr %154, i32 0, i32 0
  %160 = extractvalue { double, double } %158, 0
  store double %160, ptr %159, align 8
  %161 = getelementptr inbounds { double, double }, ptr %154, i32 0, i32 1
  %162 = extractvalue { double, double } %158, 1
  store double %162, ptr %161, align 8
  %163 = getelementptr inbounds %struct.Segment, ptr %12, i32 0, i32 1
  %164 = load i32, ptr %7, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %165
  %167 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %166, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %168 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 0
  %169 = extractvalue { double, double } %167, 0
  store double %169, ptr %168, align 8
  %170 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 1
  %171 = extractvalue { double, double } %167, 1
  store double %171, ptr %170, align 8
  %172 = load i32, ptr %5, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %174, ptr align 8 %12, i64 32, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %176
  %178 = getelementptr inbounds %struct.Segment, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %13, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %181, ptr align 16 %178, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %181, i64 16, i1 false), !tbaa.struct !11
  %182 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %183 = load double, ptr %182, align 8
  %184 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  %186 = call noundef zeroext i1 @_Z7isValid5Point(double %183, double %185)
  br i1 %186, label %187, label %190

187:                                              ; preds = %127
  %188 = load i32, ptr %13, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %13, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %187, %127
  %191 = load i32, ptr %5, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %192
  %194 = getelementptr inbounds %struct.Segment, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %196
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %197, ptr align 16 %194, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %197, i64 16, i1 false), !tbaa.struct !11
  %198 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %199 = load double, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %201 = load double, ptr %200, align 8
  %202 = call noundef zeroext i1 @_Z7isValid5Point(double %199, double %201)
  br i1 %202, label %203, label %206

203:                                              ; preds = %190
  %204 = load i32, ptr %13, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %13, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %203, %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %236, %206
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = load i32, ptr %5, align 4, !tbaa !5
  %210 = icmp slt i32 %208, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %207
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %239

212:                                              ; preds = %207
  %213 = load i32, ptr %5, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %214
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 16 %215, i64 32, i1 false), !tbaa.struct !15
  %216 = load i32, ptr %16, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %217
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 16 %218, i64 32, i1 false), !tbaa.struct !15
  %219 = load i32, ptr %13, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %220
  %222 = call noundef zeroext i1 @_Z15getIntersection7SegmentS_R5Point(ptr noundef byval(%struct.Segment) align 8 %17, ptr noundef byval(%struct.Segment) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %221)
  br i1 %222, label %223, label %235

223:                                              ; preds = %212
  %224 = load i32, ptr %13, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 16 %226, i64 16, i1 false), !tbaa.struct !11
  %227 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %228 = load double, ptr %227, align 8
  %229 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = call noundef zeroext i1 @_Z7isValid5Point(double %228, double %230)
  br i1 %231, label %232, label %235

232:                                              ; preds = %223
  %233 = load i32, ptr %13, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %13, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %232, %223, %212
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %16, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %16, align 4, !tbaa !5
  br label %207, !llvm.loop !16

239:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %310, %239
  %241 = load i32, ptr %20, align 4, !tbaa !5
  %242 = load i32, ptr @otot, align 4, !tbaa !5
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %313

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %246 = load i32, ptr %20, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [209 x i32], ptr @ord, i64 0, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  store i32 %249, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %250 = load i32, ptr %5, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %251
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 16 %252, i64 32, i1 false), !tbaa.struct !15
  %253 = load i32, ptr %21, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %254
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 16 %255, i64 16, i1 false), !tbaa.struct !11
  %256 = load i32, ptr %13, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %257
  %259 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %260 = load double, ptr %259, align 8
  %261 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %262 = load double, ptr %261, align 8
  %263 = call noundef zeroext i1 @_Z12getFootPoint7Segment5PointRS0_(ptr noundef byval(%struct.Segment) align 8 %23, double %260, double %262, ptr noundef nonnull align 8 dereferenceable(16) %258)
  br i1 %263, label %264, label %273

264:                                              ; preds = %245
  %265 = load i32, ptr %13, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %266
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 16 %267, i64 16, i1 false), !tbaa.struct !11
  %268 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %269 = load double, ptr %268, align 8
  %270 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %271 = load double, ptr %270, align 8
  %272 = call noundef zeroext i1 @_Z7isValid5Point(double %269, double %271)
  br label %273

273:                                              ; preds = %264, %245
  %274 = phi i1 [ false, %245 ], [ %272, %264 ]
  %275 = zext i1 %274 to i8
  store i8 %275, ptr %22, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %306, %273
  %277 = load i32, ptr %26, align 4, !tbaa !5
  %278 = load i32, ptr %13, align 4, !tbaa !5
  %279 = load i8, ptr %22, align 1, !tbaa !17, !range !19, !noundef !20
  %280 = trunc i8 %279 to i1
  %281 = zext i1 %280 to i32
  %282 = add nsw i32 %278, %281
  %283 = icmp slt i32 %277, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %276
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %309

285:                                              ; preds = %276
  %286 = load i32, ptr %21, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %287
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %289 = load i32, ptr %26, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %290
  %292 = load i32, ptr %21, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %293
  %295 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %291, ptr noundef nonnull align 8 dereferenceable(16) %294)
  %296 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %297 = extractvalue { double, double } %295, 0
  store double %297, ptr %296, align 8
  %298 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %299 = extractvalue { double, double } %295, 1
  store double %299, ptr %298, align 8
  %300 = call noundef double @_ZNK5Point3lenEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  store double %300, ptr %27, align 8, !tbaa !12
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %288, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %302 = load double, ptr %301, align 8, !tbaa !12
  %303 = load i32, ptr %21, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %304
  store double %302, ptr %305, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %306

306:                                              ; preds = %285
  %307 = load i32, ptr %26, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %26, align 4, !tbaa !5
  br label %276, !llvm.loop !21

309:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %20, align 4, !tbaa !5
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %20, align 4, !tbaa !5
  br label %240, !llvm.loop !22

313:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %314

314:                                              ; preds = %313
  %315 = load i32, ptr %5, align 4, !tbaa !5
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %5, align 4, !tbaa !5
  br label %113, !llvm.loop !23

317:                                              ; preds = %117
  store i32 0, ptr @btot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %318

318:                                              ; preds = %552, %317
  %319 = load i32, ptr %29, align 4, !tbaa !5
  %320 = load i32, ptr @n, align 4, !tbaa !5
  %321 = icmp slt i32 %319, %320
  br i1 %321, label %323, label %322

322:                                              ; preds = %318
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %555

323:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %324 = load i32, ptr %29, align 4, !tbaa !5
  %325 = sub nsw i32 %324, 1
  %326 = icmp slt i32 %325, 0
  br i1 %326, label %327, label %330

327:                                              ; preds = %323
  %328 = load i32, ptr @n, align 4, !tbaa !5
  %329 = sub nsw i32 %328, 1
  br label %333

330:                                              ; preds = %323
  %331 = load i32, ptr %29, align 4, !tbaa !5
  %332 = sub nsw i32 %331, 1
  br label %333

333:                                              ; preds = %330, %327
  %334 = phi i32 [ %329, %327 ], [ %332, %330 ]
  store i32 %334, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %335 = load i32, ptr %29, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  %337 = load i32, ptr @n, align 4, !tbaa !5
  %338 = icmp slt i32 %336, %337
  br i1 %338, label %339, label %342

339:                                              ; preds = %333
  %340 = load i32, ptr %29, align 4, !tbaa !5
  %341 = add nsw i32 %340, 1
  br label %343

342:                                              ; preds = %333
  br label %343

343:                                              ; preds = %342, %339
  %344 = phi i32 [ %341, %339 ], [ 0, %342 ]
  store i32 %344, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %345 = load i32, ptr %29, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %346
  %348 = load i32, ptr %30, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %349
  %351 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %347, ptr noundef nonnull align 8 dereferenceable(16) %350)
  %352 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %353 = extractvalue { double, double } %351, 0
  store double %353, ptr %352, align 8
  %354 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %355 = extractvalue { double, double } %351, 1
  store double %355, ptr %354, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %356 = load i32, ptr %31, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %357
  %359 = load i32, ptr %29, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %360
  %362 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %358, ptr noundef nonnull align 8 dereferenceable(16) %361)
  %363 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %364 = extractvalue { double, double } %362, 0
  store double %364, ptr %363, align 8
  %365 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %366 = extractvalue { double, double } %362, 1
  store double %366, ptr %365, align 8
  %367 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %33)
  %368 = call noundef i32 @_Z3sgnd(double noundef %367)
  %369 = icmp sge i32 %368, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  br i1 %369, label %370, label %371

370:                                              ; preds = %343
  store i32 24, ptr %6, align 4
  br label %549

371:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 48, ptr %34) #7
  %372 = getelementptr inbounds %struct.Sector, ptr %34, i32 0, i32 0
  %373 = load i32, ptr %29, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %374
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %372, ptr align 16 %375, i64 16, i1 false), !tbaa.struct !11
  %376 = getelementptr inbounds %struct.Sector, ptr %34, i32 0, i32 1
  %377 = load i32, ptr %29, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %378
  %380 = getelementptr inbounds %struct.Segment, ptr %379, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %376, ptr align 16 %380, i64 16, i1 false), !tbaa.struct !11
  %381 = getelementptr inbounds %struct.Sector, ptr %34, i32 0, i32 2
  %382 = load i32, ptr %30, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %383
  %385 = getelementptr inbounds %struct.Segment, ptr %384, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %381, ptr align 16 %385, i64 16, i1 false), !tbaa.struct !11
  %386 = load i32, ptr @btot, align 4, !tbaa !5
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %387
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %388, ptr align 8 %34, i64 48, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %389

389:                                              ; preds = %427, %371
  %390 = load i32, ptr %36, align 4, !tbaa !5
  %391 = load i32, ptr @n, align 4, !tbaa !5
  %392 = icmp slt i32 %390, %391
  br i1 %392, label %394, label %393

393:                                              ; preds = %389
  store i32 25, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %430

394:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %395 = load i32, ptr @btot, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %396
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 16 %397, i64 48, i1 false), !tbaa.struct !24
  %398 = load i32, ptr %36, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %399
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 16 %400, i64 32, i1 false), !tbaa.struct !15
  %401 = call noundef i32 @_Z15getIntersection6Sector7SegmentP5Point(ptr noundef byval(%struct.Sector) align 8 %38, ptr noundef byval(%struct.Segment) align 8 %39, ptr noundef @_ZZ4mainE3que)
  store i32 %401, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %402

402:                                              ; preds = %423, %394
  %403 = load i32, ptr %40, align 4, !tbaa !5
  %404 = load i32, ptr %37, align 4, !tbaa !5
  %405 = icmp slt i32 %403, %404
  br i1 %405, label %407, label %406

406:                                              ; preds = %402
  store i32 28, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %426

407:                                              ; preds = %402
  %408 = load i32, ptr %40, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds [3 x %struct.Point], ptr @_ZZ4mainE3que, i64 0, i64 %409
  %411 = load i32, ptr %35, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %412
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %413, ptr align 16 %410, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %413, i64 16, i1 false), !tbaa.struct !11
  %414 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %415 = load double, ptr %414, align 8
  %416 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %417 = load double, ptr %416, align 8
  %418 = call noundef zeroext i1 @_Z7isValid5Point(double %415, double %417)
  br i1 %418, label %419, label %422

419:                                              ; preds = %407
  %420 = load i32, ptr %35, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %35, align 4, !tbaa !5
  br label %422

422:                                              ; preds = %419, %407
  br label %423

423:                                              ; preds = %422
  %424 = load i32, ptr %40, align 4, !tbaa !5
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr %40, align 4, !tbaa !5
  br label %402, !llvm.loop !25

426:                                              ; preds = %406
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %427

427:                                              ; preds = %426
  %428 = load i32, ptr %36, align 4, !tbaa !5
  %429 = add nsw i32 %428, 1
  store i32 %429, ptr %36, align 4, !tbaa !5
  br label %389, !llvm.loop !26

430:                                              ; preds = %393
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %431

431:                                              ; preds = %469, %430
  %432 = load i32, ptr %42, align 4, !tbaa !5
  %433 = load i32, ptr @btot, align 4, !tbaa !5
  %434 = icmp slt i32 %432, %433
  br i1 %434, label %436, label %435

435:                                              ; preds = %431
  store i32 31, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %472

436:                                              ; preds = %431
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %437 = load i32, ptr @btot, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %438
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 16 %439, i64 48, i1 false), !tbaa.struct !24
  %440 = load i32, ptr %42, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %441
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 16 %442, i64 48, i1 false), !tbaa.struct !24
  %443 = call noundef i32 @_Z15getIntersection6SectorS_P5Point(ptr noundef byval(%struct.Sector) align 8 %44, ptr noundef byval(%struct.Sector) align 8 %45, ptr noundef @_ZZ4mainE3que)
  store i32 %443, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %444

444:                                              ; preds = %465, %436
  %445 = load i32, ptr %46, align 4, !tbaa !5
  %446 = load i32, ptr %43, align 4, !tbaa !5
  %447 = icmp slt i32 %445, %446
  br i1 %447, label %449, label %448

448:                                              ; preds = %444
  store i32 34, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %468

449:                                              ; preds = %444
  %450 = load i32, ptr %46, align 4, !tbaa !5
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds [3 x %struct.Point], ptr @_ZZ4mainE3que, i64 0, i64 %451
  %453 = load i32, ptr %35, align 4, !tbaa !5
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %454
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %455, ptr align 16 %452, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %455, i64 16, i1 false), !tbaa.struct !11
  %456 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %457 = load double, ptr %456, align 8
  %458 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %459 = load double, ptr %458, align 8
  %460 = call noundef zeroext i1 @_Z7isValid5Point(double %457, double %459)
  br i1 %460, label %461, label %464

461:                                              ; preds = %449
  %462 = load i32, ptr %35, align 4, !tbaa !5
  %463 = add nsw i32 %462, 1
  store i32 %463, ptr %35, align 4, !tbaa !5
  br label %464

464:                                              ; preds = %461, %449
  br label %465

465:                                              ; preds = %464
  %466 = load i32, ptr %46, align 4, !tbaa !5
  %467 = add nsw i32 %466, 1
  store i32 %467, ptr %46, align 4, !tbaa !5
  br label %444, !llvm.loop !27

468:                                              ; preds = %448
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %469

469:                                              ; preds = %468
  %470 = load i32, ptr %42, align 4, !tbaa !5
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %42, align 4, !tbaa !5
  br label %431, !llvm.loop !28

472:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %473

473:                                              ; preds = %543, %472
  %474 = load i32, ptr %48, align 4, !tbaa !5
  %475 = load i32, ptr @m, align 4, !tbaa !5
  %476 = icmp slt i32 %474, %475
  br i1 %476, label %478, label %477

477:                                              ; preds = %473
  store i32 37, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %546

478:                                              ; preds = %473
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %479 = load i32, ptr %48, align 4, !tbaa !5
  %480 = sext i32 %479 to i64
  %481 = getelementptr inbounds [209 x i32], ptr @ord, i64 0, i64 %480
  %482 = load i32, ptr %481, align 4, !tbaa !5
  store i32 %482, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #7
  %483 = load i32, ptr @btot, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %484
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 16 %485, i64 48, i1 false), !tbaa.struct !24
  %486 = load i32, ptr %49, align 4, !tbaa !5
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %487
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 16 %488, i64 16, i1 false), !tbaa.struct !11
  %489 = load i32, ptr %35, align 4, !tbaa !5
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %490
  %492 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %493 = load double, ptr %492, align 8
  %494 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %495 = load double, ptr %494, align 8
  %496 = call noundef zeroext i1 @_Z12getFootPoint6Sector5PointRS0_(ptr noundef byval(%struct.Sector) align 8 %51, double %493, double %495, ptr noundef nonnull align 8 dereferenceable(16) %491)
  br i1 %496, label %497, label %506

497:                                              ; preds = %478
  %498 = load i32, ptr %35, align 4, !tbaa !5
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %499
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 16 %500, i64 16, i1 false), !tbaa.struct !11
  %501 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %502 = load double, ptr %501, align 8
  %503 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %504 = load double, ptr %503, align 8
  %505 = call noundef zeroext i1 @_Z7isValid5Point(double %502, double %504)
  br label %506

506:                                              ; preds = %497, %478
  %507 = phi i1 [ false, %478 ], [ %505, %497 ]
  %508 = zext i1 %507 to i8
  store i8 %508, ptr %50, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  store i32 0, ptr %54, align 4, !tbaa !5
  br label %509

509:                                              ; preds = %539, %506
  %510 = load i32, ptr %54, align 4, !tbaa !5
  %511 = load i32, ptr %35, align 4, !tbaa !5
  %512 = load i8, ptr %50, align 1, !tbaa !17, !range !19, !noundef !20
  %513 = trunc i8 %512 to i1
  %514 = zext i1 %513 to i32
  %515 = add nsw i32 %511, %514
  %516 = icmp slt i32 %510, %515
  br i1 %516, label %518, label %517

517:                                              ; preds = %509
  store i32 40, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  br label %542

518:                                              ; preds = %509
  %519 = load i32, ptr %49, align 4, !tbaa !5
  %520 = sext i32 %519 to i64
  %521 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %520
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #7
  %522 = load i32, ptr %54, align 4, !tbaa !5
  %523 = sext i32 %522 to i64
  %524 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %523
  %525 = load i32, ptr %49, align 4, !tbaa !5
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %526
  %528 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %524, ptr noundef nonnull align 8 dereferenceable(16) %527)
  %529 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %530 = extractvalue { double, double } %528, 0
  store double %530, ptr %529, align 8
  %531 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %532 = extractvalue { double, double } %528, 1
  store double %532, ptr %531, align 8
  %533 = call noundef double @_ZNK5Point3lenEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  store double %533, ptr %55, align 8, !tbaa !12
  %534 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %521, ptr noundef nonnull align 8 dereferenceable(8) %55)
  %535 = load double, ptr %534, align 8, !tbaa !12
  %536 = load i32, ptr %49, align 4, !tbaa !5
  %537 = sext i32 %536 to i64
  %538 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %537
  store double %535, ptr %538, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  br label %539

539:                                              ; preds = %518
  %540 = load i32, ptr %54, align 4, !tbaa !5
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr %54, align 4, !tbaa !5
  br label %509, !llvm.loop !29

542:                                              ; preds = %517
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  br label %543

543:                                              ; preds = %542
  %544 = load i32, ptr %48, align 4, !tbaa !5
  %545 = add nsw i32 %544, 1
  store i32 %545, ptr %48, align 4, !tbaa !5
  br label %473, !llvm.loop !30

546:                                              ; preds = %477
  %547 = load i32, ptr @btot, align 4, !tbaa !5
  %548 = add nsw i32 %547, 1
  store i32 %548, ptr @btot, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  store i32 0, ptr %6, align 4
  br label %549

549:                                              ; preds = %546, %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  %550 = load i32, ptr %6, align 4
  switch i32 %550, label %572 [
    i32 0, label %551
    i32 24, label %552
  ]

551:                                              ; preds = %549
  br label %552

552:                                              ; preds = %551, %549
  %553 = load i32, ptr %29, align 4, !tbaa !5
  %554 = add nsw i32 %553, 1
  store i32 %554, ptr %29, align 4, !tbaa !5
  br label %318, !llvm.loop !31

555:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  store i32 0, ptr %57, align 4, !tbaa !5
  br label %556

556:                                              ; preds = %567, %555
  %557 = load i32, ptr %57, align 4, !tbaa !5
  %558 = load i32, ptr @m, align 4, !tbaa !5
  %559 = icmp slt i32 %557, %558
  br i1 %559, label %561, label %560

560:                                              ; preds = %556
  store i32 43, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  br label %570

561:                                              ; preds = %556
  %562 = load i32, ptr %57, align 4, !tbaa !5
  %563 = sext i32 %562 to i64
  %564 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %563
  %565 = load double, ptr %564, align 8, !tbaa !12
  %566 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %565)
  br label %567

567:                                              ; preds = %561
  %568 = load i32, ptr %57, align 4, !tbaa !5
  %569 = add nsw i32 %568, 1
  store i32 %569, ptr %57, align 4, !tbaa !5
  br label %556, !llvm.loop !32

570:                                              ; preds = %560
  br label %59, !llvm.loop !33

571:                                              ; preds = %59
  ret i32 0

572:                                              ; preds = %549
  unreachable
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { "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 #7 = { 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 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12}
!16 = distinct !{!16, !10}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12, i64 40, i64 8, !12}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !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 { double, double }
%struct.Segment = type { %struct.Point, %struct.Point }
%struct.Sector = type { %struct.Point, %struct.Point, %struct.Point }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@rad = external dso_local global i32, align 4
@otot = external dso_local local_unnamed_addr global i32, align 4
@btot = external dso_local local_unnamed_addr global i32, align 4
@ord = external dso_local local_unnamed_addr global [209 x i32], align 16
@ans = external dso_local global [209 x double], align 16
@p = external dso_local global [209 x %struct.Point], align 16
@q = external dso_local global [209 x %struct.Point], align 16
@seq = external dso_local global [837 x %struct.Point], align 16
@a = external dso_local local_unnamed_addr global [209 x %struct.Segment], align 16
@b = external dso_local local_unnamed_addr global [209 x %struct.Sector], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZZ4mainE3que = external hidden global [3 x %struct.Point], align 16
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12getFootPoint7Segment5PointRS0_(ptr noundef byval(%struct.Segment) align 8, double, double, ptr noundef nonnull align 8 dereferenceable(16)) 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: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15getIntersection7SegmentS_R5Point(ptr noundef byval(%struct.Segment) align 8, ptr noundef byval(%struct.Segment) align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12getFootPoint6Sector5PointRS0_(ptr noundef byval(%struct.Sector) align 8, double, double, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15getIntersection6Sector7SegmentP5Point(ptr noundef byval(%struct.Sector) align 8, ptr noundef byval(%struct.Segment) align 8, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15getIntersection6SectorS_P5Point(ptr noundef byval(%struct.Sector) align 8, ptr noundef byval(%struct.Sector) align 8, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7isValid5Point(double, double) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca %struct.Point, align 8
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Sector, align 8
  %9 = alloca double, align 8
  %10 = alloca %struct.Point, align 8
  %11 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %12 = load i32, ptr @t, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr @t, align 4, !tbaa !5
  %.not196 = icmp eq i32 %12, 0
  br i1 %.not196, label %._crit_edge199, label %.lr.ph198

.lr.ph198:                                        ; preds = %0
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  %18 = getelementptr inbounds i8, ptr %7, i64 8
  %19 = getelementptr inbounds i8, ptr %8, i64 16
  %20 = getelementptr inbounds i8, ptr %8, i64 32
  %21 = getelementptr inbounds i8, ptr %10, i64 8
  br label %24

.loopexit:                                        ; preds = %.lr.ph195, %.preheader143
  %22 = load i32, ptr @t, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %._crit_edge199, label %24, !llvm.loop !9

24:                                               ; preds = %.lr.ph198, %.loopexit
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @rad)
  %26 = load i32, ptr @n, align 4
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %24
  %28 = phi i32 [ %26, %24 ], [ %32, %.lr.ph ]
  store i32 0, ptr @otot, align 4, !tbaa !5
  %29 = load i32, ptr @m, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph148, label %.preheader144

.lr.ph:                                           ; preds = %24, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %24 ]
  %31 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr @n, align 4
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader144.loopexit:                           ; preds = %45
  %.pre = load i32, ptr @n, align 4
  br label %.preheader144

.preheader144:                                    ; preds = %.preheader144.loopexit, %._crit_edge
  %35 = phi i32 [ %.pre, %.preheader144.loopexit ], [ %28, %._crit_edge ]
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph161, label %._crit_edge162.thread

._crit_edge162.thread:                            ; preds = %.preheader144
  store i32 0, ptr @btot, align 4, !tbaa !5
  br label %.preheader143

.lr.ph148:                                        ; preds = %._crit_edge, %45
  %indvars.iv202 = phi i64 [ %indvars.iv.next203, %45 ], [ 0, %._crit_edge ]
  %37 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %indvars.iv202
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %.sroa.0105.0.copyload = load double, ptr %37, align 16, !tbaa !12
  %.sroa.2106.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 8
  %.sroa.2106.0.copyload = load double, ptr %.sroa.2106.0..sroa_idx, align 8, !tbaa !12
  %38 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.0105.0.copyload, double %.sroa.2106.0.copyload)
  br i1 %38, label %45, label %39

39:                                               ; preds = %.lr.ph148
  %40 = load i32, ptr @otot, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr @otot, align 4, !tbaa !5
  %42 = sext i32 %40 to i64
  %43 = getelementptr inbounds [209 x i32], ptr @ord, i64 0, i64 %42
  %44 = trunc nuw nsw i64 %indvars.iv202 to i32
  store i32 %44, ptr %43, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %.lr.ph148, %39
  %.sink = phi double [ 1.000000e+10, %39 ], [ 0.000000e+00, %.lr.ph148 ]
  %46 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %indvars.iv202
  store double %.sink, ptr %46, align 8
  %indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
  %47 = load i32, ptr @m, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next203, %48
  br i1 %49, label %.lr.ph148, label %.preheader144.loopexit, !llvm.loop !14

._crit_edge162:                                   ; preds = %._crit_edge159
  store i32 0, ptr @btot, align 4, !tbaa !5
  %50 = icmp sgt i32 %95, 0
  br i1 %50, label %.lr.ph193, label %.preheader143

.lr.ph161:                                        ; preds = %.preheader144, %._crit_edge159
  %indvars.iv216 = phi i64 [ %indvars.iv.next217, %._crit_edge159 ], [ 0, %.preheader144 ]
  %51 = phi i32 [ %95, %._crit_edge159 ], [ %35, %.preheader144 ]
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next217, %52
  %54 = and i64 %indvars.iv.next217, 4294967295
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %55 = select i1 %53, i64 %54, i64 0
  %56 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %55
  %57 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv216
  %58 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %57)
  %59 = extractvalue { double, double } %58, 0
  store double %59, ptr %2, align 8
  %60 = extractvalue { double, double } %58, 1
  store double %60, ptr %14, align 8
  %61 = call { double, double } @_ZNK5Point9shiftLeftEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %62 = extractvalue { double, double } %61, 0
  store double %62, ptr %1, align 8
  %63 = extractvalue { double, double } %61, 1
  store double %63, ptr %15, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %64 = load i32, ptr @rad, align 4, !tbaa !5
  %65 = sitofp i32 %64 to double
  %66 = call noundef double @_ZNK5Point3lenEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %67 = fdiv double %65, %66
  store double %67, ptr %3, align 8, !tbaa !12
  %68 = call { double, double } @_ZNK5PointmlERKd(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  store double %69, ptr %1, align 8, !tbaa !12
  store double %70, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %71 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %72 = extractvalue { double, double } %71, 0
  %73 = extractvalue { double, double } %71, 1
  %74 = call { double, double } @_ZNK5PointplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %75 = extractvalue { double, double } %74, 0
  %76 = extractvalue { double, double } %74, 1
  %77 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %indvars.iv216
  store double %72, ptr %77, align 16, !tbaa !12
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %77, i64 8
  store double %73, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !12
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %77, i64 16
  store double %75, ptr %.sroa.5.0..sroa_idx, align 16, !tbaa !12
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %77, i64 24
  store double %76, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) @seq, ptr noundef nonnull align 16 dereferenceable(16) %77, i64 16, i1 false), !tbaa.struct !15
  %.sroa.076.0.copyload = load double, ptr @seq, align 16, !tbaa !12
  %.sroa.277.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @seq, i64 8), align 8, !tbaa !12
  %78 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.076.0.copyload, double %.sroa.277.0.copyload)
  %spec.select = zext i1 %78 to i32
  %79 = zext i1 %78 to i64
  %80 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %79
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %80, ptr noundef nonnull align 16 dereferenceable(16) %.sroa.5.0..sroa_idx, i64 16, i1 false), !tbaa.struct !15
  %.sroa.074.0.copyload = load double, ptr %80, align 16, !tbaa !12
  %.sroa.275.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 8
  %.sroa.275.0.copyload = load double, ptr %.sroa.275.0..sroa_idx, align 8, !tbaa !12
  %81 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.074.0.copyload, double %.sroa.275.0.copyload)
  %82 = select i1 %78, i32 2, i32 1
  %.1 = select i1 %81, i32 %82, i32 %spec.select
  %.not200 = icmp eq i64 %indvars.iv216, 0
  br i1 %.not200, label %.preheader142, label %.lr.ph152

.preheader142:                                    ; preds = %94, %.lr.ph161
  %.2.lcssa = phi i32 [ %.1, %.lr.ph161 ], [ %.3, %94 ]
  %83 = load i32, ptr @otot, align 4, !tbaa !5
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph158, label %._crit_edge159

.lr.ph158:                                        ; preds = %.preheader142
  %85 = sext i32 %.2.lcssa to i64
  %86 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %85
  %.sroa.258.0..sroa_idx = getelementptr inbounds i8, ptr %86, i64 8
  br label %98

.lr.ph152:                                        ; preds = %.lr.ph161, %94
  %indvars.iv205 = phi i64 [ %indvars.iv.next206, %94 ], [ 0, %.lr.ph161 ]
  %.2150 = phi i32 [ %.3, %94 ], [ %.1, %.lr.ph161 ]
  %87 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %indvars.iv205
  %88 = sext i32 %.2150 to i64
  %89 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %88
  %90 = call noundef zeroext i1 @_Z15getIntersection7SegmentS_R5Point(ptr noundef nonnull byval(%struct.Segment) align 8 %77, ptr noundef nonnull byval(%struct.Segment) align 8 %87, ptr noundef nonnull align 8 dereferenceable(16) %89)
  br i1 %90, label %91, label %94

91:                                               ; preds = %.lr.ph152
  %.sroa.069.0.copyload = load double, ptr %89, align 16, !tbaa !12
  %.sroa.270.0..sroa_idx = getelementptr inbounds i8, ptr %89, i64 8
  %.sroa.270.0.copyload = load double, ptr %.sroa.270.0..sroa_idx, align 8, !tbaa !12
  %92 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.069.0.copyload, double %.sroa.270.0.copyload)
  %93 = zext i1 %92 to i32
  %spec.select138 = add nsw i32 %.2150, %93
  br label %94

94:                                               ; preds = %91, %.lr.ph152
  %.3 = phi i32 [ %.2150, %.lr.ph152 ], [ %spec.select138, %91 ]
  %indvars.iv.next206 = add nuw nsw i64 %indvars.iv205, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next206, %indvars.iv216
  br i1 %exitcond.not, label %.preheader142, label %.lr.ph152, !llvm.loop !16

._crit_edge159:                                   ; preds = %._crit_edge156, %.preheader142
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  %95 = load i32, ptr @n, align 4
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next217, %96
  br i1 %97, label %.lr.ph161, label %._crit_edge162, !llvm.loop !17

98:                                               ; preds = %.lr.ph158, %._crit_edge156
  %indvars.iv213 = phi i64 [ 0, %.lr.ph158 ], [ %indvars.iv.next214, %._crit_edge156 ]
  %99 = getelementptr inbounds [209 x i32], ptr @ord, i64 0, i64 %indvars.iv213
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %101
  %.sroa.059.0.copyload = load double, ptr %102, align 16, !tbaa !12
  %.sroa.260.0..sroa_idx = getelementptr inbounds i8, ptr %102, i64 8
  %.sroa.260.0.copyload = load double, ptr %.sroa.260.0..sroa_idx, align 8, !tbaa !12
  %103 = call noundef zeroext i1 @_Z12getFootPoint7Segment5PointRS0_(ptr noundef nonnull byval(%struct.Segment) align 8 %77, double %.sroa.059.0.copyload, double %.sroa.260.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %86)
  br i1 %103, label %104, label %106

104:                                              ; preds = %98
  %.sroa.057.0.copyload = load double, ptr %86, align 16, !tbaa !12
  %.sroa.258.0.copyload = load double, ptr %.sroa.258.0..sroa_idx, align 8, !tbaa !12
  %105 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.057.0.copyload, double %.sroa.258.0.copyload)
  br label %106

106:                                              ; preds = %104, %98
  %107 = phi i1 [ false, %98 ], [ %105, %104 ]
  %108 = zext i1 %107 to i32
  %109 = add nsw i32 %.2.lcssa, %108
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %.lr.ph155, label %._crit_edge156

.lr.ph155:                                        ; preds = %106
  %111 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %101
  %wide.trip.count211 = zext nneg i32 %109 to i64
  br label %115

._crit_edge156:                                   ; preds = %115, %106
  %indvars.iv.next214 = add nuw nsw i64 %indvars.iv213, 1
  %112 = load i32, ptr @otot, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = icmp slt i64 %indvars.iv.next214, %113
  br i1 %114, label %98, label %._crit_edge159, !llvm.loop !18

115:                                              ; preds = %.lr.ph155, %115
  %indvars.iv208 = phi i64 [ 0, %.lr.ph155 ], [ %indvars.iv.next209, %115 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %116 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %indvars.iv208
  %117 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef nonnull align 8 dereferenceable(16) %102)
  %118 = extractvalue { double, double } %117, 0
  store double %118, ptr %5, align 8
  %119 = extractvalue { double, double } %117, 1
  store double %119, ptr %16, align 8
  %120 = call noundef double @_ZNK5Point3lenEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store double %120, ptr %4, align 8, !tbaa !12
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %122 = load double, ptr %121, align 8, !tbaa !12
  store double %122, ptr %111, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %exitcond212.not = icmp eq i64 %indvars.iv.next209, %wide.trip.count211
  br i1 %exitcond212.not, label %._crit_edge156, label %115, !llvm.loop !19

.preheader143:                                    ; preds = %218, %._crit_edge162.thread, %._crit_edge162
  %123 = load i32, ptr @m, align 4, !tbaa !5
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %.lr.ph195, label %.loopexit

.lr.ph193:                                        ; preds = %._crit_edge162, %218
  %indvars.iv242 = phi i64 [ %indvars.iv.next243, %218 ], [ 0, %._crit_edge162 ]
  %125 = phi i32 [ %219, %218 ], [ %95, %._crit_edge162 ]
  %126 = icmp eq i64 %indvars.iv242, 0
  %127 = trunc nuw nsw i64 %indvars.iv242 to i32
  %.v = select i1 %126, i32 %125, i32 %127
  %128 = add nsw i32 %.v, -1
  %indvars.iv.next243 = add nuw nsw i64 %indvars.iv242, 1
  %129 = sext i32 %125 to i64
  %130 = icmp slt i64 %indvars.iv.next243, %129
  %131 = and i64 %indvars.iv.next243, 4294967295
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %132 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv242
  %133 = sext i32 %128 to i64
  %134 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %133
  %135 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %132, ptr noundef nonnull align 8 dereferenceable(16) %134)
  %136 = extractvalue { double, double } %135, 0
  store double %136, ptr %6, align 8
  %137 = extractvalue { double, double } %135, 1
  store double %137, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %138 = select i1 %130, i64 %131, i64 0
  %139 = getelementptr inbounds [209 x %struct.Point], ptr @p, i64 0, i64 %138
  %140 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %139, ptr noundef nonnull align 8 dereferenceable(16) %132)
  %141 = extractvalue { double, double } %140, 0
  store double %141, ptr %7, align 8
  %142 = extractvalue { double, double } %140, 1
  store double %142, ptr %18, align 8
  %143 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %144 = call noundef i32 @_Z3sgnd(double noundef %143)
  %145 = icmp sgt i32 %144, -1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %.pre251 = load i32, ptr @n, align 4
  br i1 %145, label %218, label %146

146:                                              ; preds = %.lr.ph193
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %132, i64 16, i1 false), !tbaa.struct !15
  %147 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %indvars.iv242
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 16 dereferenceable(16) %147, i64 16, i1 false), !tbaa.struct !15
  %148 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %133, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 16 dereferenceable(16) %148, i64 16, i1 false), !tbaa.struct !15
  %149 = load i32, ptr @btot, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %150
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %151, ptr noundef nonnull align 8 dereferenceable(48) %8, i64 48, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8)
  %152 = icmp sgt i32 %.pre251, 0
  br i1 %152, label %.lr.ph172, label %.preheader141

.preheader141.loopexit:                           ; preds = %._crit_edge167
  %.pre248 = load i32, ptr @btot, align 4, !tbaa !5
  br label %.preheader141

.preheader141:                                    ; preds = %.preheader141.loopexit, %146
  %153 = phi i32 [ %149, %146 ], [ %.pre248, %.preheader141.loopexit ]
  %.0129.lcssa = phi i32 [ 0, %146 ], [ %.1130.lcssa, %.preheader141.loopexit ]
  %154 = icmp sgt i32 %153, 0
  br i1 %154, label %.lr.ph182, label %.preheader

.lr.ph172:                                        ; preds = %146, %._crit_edge167
  %indvars.iv223 = phi i64 [ %indvars.iv.next224, %._crit_edge167 ], [ 0, %146 ]
  %.0129170 = phi i32 [ %.1130.lcssa, %._crit_edge167 ], [ 0, %146 ]
  %155 = load i32, ptr @btot, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %156
  %158 = getelementptr inbounds [209 x %struct.Segment], ptr @a, i64 0, i64 %indvars.iv223
  %159 = call noundef i32 @_Z15getIntersection6Sector7SegmentP5Point(ptr noundef nonnull byval(%struct.Sector) align 8 %157, ptr noundef nonnull byval(%struct.Segment) align 8 %158, ptr noundef nonnull @_ZZ4mainE3que)
  %160 = icmp sgt i32 %159, 0
  br i1 %160, label %.lr.ph166.preheader, label %._crit_edge167

.lr.ph166.preheader:                              ; preds = %.lr.ph172
  %wide.trip.count = zext nneg i32 %159 to i64
  br label %.lr.ph166

._crit_edge167:                                   ; preds = %.lr.ph166, %.lr.ph172
  %.1130.lcssa = phi i32 [ %.0129170, %.lr.ph172 ], [ %spec.select139, %.lr.ph166 ]
  %indvars.iv.next224 = add nuw nsw i64 %indvars.iv223, 1
  %161 = load i32, ptr @n, align 4
  %162 = sext i32 %161 to i64
  %163 = icmp slt i64 %indvars.iv.next224, %162
  br i1 %163, label %.lr.ph172, label %.preheader141.loopexit, !llvm.loop !21

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %.lr.ph166
  %indvars.iv219 = phi i64 [ 0, %.lr.ph166.preheader ], [ %indvars.iv.next220, %.lr.ph166 ]
  %.1130164 = phi i32 [ %.0129170, %.lr.ph166.preheader ], [ %spec.select139, %.lr.ph166 ]
  %164 = getelementptr inbounds [3 x %struct.Point], ptr @_ZZ4mainE3que, i64 0, i64 %indvars.iv219
  %165 = sext i32 %.1130164 to i64
  %166 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %165
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %166, ptr noundef nonnull align 16 dereferenceable(16) %164, i64 16, i1 false), !tbaa.struct !15
  %.sroa.025.0.copyload = load double, ptr %166, align 16, !tbaa !12
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %166, i64 8
  %.sroa.226.0.copyload = load double, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !12
  %167 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.025.0.copyload, double %.sroa.226.0.copyload)
  %168 = zext i1 %167 to i32
  %spec.select139 = add nsw i32 %.1130164, %168
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %exitcond222.not = icmp eq i64 %indvars.iv.next220, %wide.trip.count
  br i1 %exitcond222.not, label %._crit_edge167, label %.lr.ph166, !llvm.loop !22

.preheader:                                       ; preds = %._crit_edge178, %.preheader141
  %169 = phi i32 [ %153, %.preheader141 ], [ %180, %._crit_edge178 ]
  %.3132.lcssa = phi i32 [ %.0129.lcssa, %.preheader141 ], [ %.4.lcssa, %._crit_edge178 ]
  %170 = load i32, ptr @m, align 4, !tbaa !5
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %.lr.ph189, label %._crit_edge190

.lr.ph189:                                        ; preds = %.preheader
  %172 = sext i32 %.3132.lcssa to i64
  %173 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %172
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %173, i64 8
  br label %190

.lr.ph182:                                        ; preds = %.preheader141, %._crit_edge178
  %indvars.iv231 = phi i64 [ %indvars.iv.next232, %._crit_edge178 ], [ 0, %.preheader141 ]
  %174 = phi i32 [ %180, %._crit_edge178 ], [ %153, %.preheader141 ]
  %.3132180 = phi i32 [ %.4.lcssa, %._crit_edge178 ], [ %.0129.lcssa, %.preheader141 ]
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %175
  %177 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %indvars.iv231
  %178 = call noundef i32 @_Z15getIntersection6SectorS_P5Point(ptr noundef nonnull byval(%struct.Sector) align 8 %176, ptr noundef nonnull byval(%struct.Sector) align 8 %177, ptr noundef nonnull @_ZZ4mainE3que)
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %.lr.ph177.preheader, label %._crit_edge178

.lr.ph177.preheader:                              ; preds = %.lr.ph182
  %wide.trip.count229 = zext nneg i32 %178 to i64
  br label %.lr.ph177

._crit_edge178:                                   ; preds = %.lr.ph177, %.lr.ph182
  %.4.lcssa = phi i32 [ %.3132180, %.lr.ph182 ], [ %spec.select140, %.lr.ph177 ]
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %180 = load i32, ptr @btot, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = icmp slt i64 %indvars.iv.next232, %181
  br i1 %182, label %.lr.ph182, label %.preheader, !llvm.loop !23

.lr.ph177:                                        ; preds = %.lr.ph177.preheader, %.lr.ph177
  %indvars.iv226 = phi i64 [ 0, %.lr.ph177.preheader ], [ %indvars.iv.next227, %.lr.ph177 ]
  %.4174 = phi i32 [ %.3132180, %.lr.ph177.preheader ], [ %spec.select140, %.lr.ph177 ]
  %183 = getelementptr inbounds [3 x %struct.Point], ptr @_ZZ4mainE3que, i64 0, i64 %indvars.iv226
  %184 = sext i32 %.4174 to i64
  %185 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %185, ptr noundef nonnull align 16 dereferenceable(16) %183, i64 16, i1 false), !tbaa.struct !15
  %.sroa.016.0.copyload = load double, ptr %185, align 16, !tbaa !12
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %185, i64 8
  %.sroa.217.0.copyload = load double, ptr %.sroa.217.0..sroa_idx, align 8, !tbaa !12
  %186 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.016.0.copyload, double %.sroa.217.0.copyload)
  %187 = zext i1 %186 to i32
  %spec.select140 = add nsw i32 %.4174, %187
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %exitcond230.not = icmp eq i64 %indvars.iv.next227, %wide.trip.count229
  br i1 %exitcond230.not, label %._crit_edge178, label %.lr.ph177, !llvm.loop !24

._crit_edge190.loopexit:                          ; preds = %._crit_edge187
  %.pre249 = load i32, ptr @btot, align 4, !tbaa !5
  br label %._crit_edge190

._crit_edge190:                                   ; preds = %._crit_edge190.loopexit, %.preheader
  %188 = phi i32 [ %.pre249, %._crit_edge190.loopexit ], [ %169, %.preheader ]
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr @btot, align 4, !tbaa !5
  %.pre250 = load i32, ptr @n, align 4
  br label %218

190:                                              ; preds = %.lr.ph189, %._crit_edge187
  %indvars.iv239 = phi i64 [ 0, %.lr.ph189 ], [ %indvars.iv.next240, %._crit_edge187 ]
  %191 = getelementptr inbounds [209 x i32], ptr @ord, i64 0, i64 %indvars.iv239
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = load i32, ptr @btot, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [209 x %struct.Sector], ptr @b, i64 0, i64 %194
  %196 = sext i32 %192 to i64
  %197 = getelementptr inbounds [209 x %struct.Point], ptr @q, i64 0, i64 %196
  %.sroa.06.0.copyload = load double, ptr %197, align 16, !tbaa !12
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %197, i64 8
  %.sroa.27.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !12
  %198 = call noundef zeroext i1 @_Z12getFootPoint6Sector5PointRS0_(ptr noundef nonnull byval(%struct.Sector) align 8 %195, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %173)
  br i1 %198, label %199, label %201

199:                                              ; preds = %190
  %.sroa.0.0.copyload = load double, ptr %173, align 16, !tbaa !12
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !12
  %200 = call noundef zeroext i1 @_Z7isValid5Point(double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  br label %201

201:                                              ; preds = %199, %190
  %202 = phi i1 [ false, %190 ], [ %200, %199 ]
  %203 = zext i1 %202 to i32
  %204 = add nsw i32 %.3132.lcssa, %203
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %.lr.ph186, label %._crit_edge187

.lr.ph186:                                        ; preds = %201
  %206 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %196
  %wide.trip.count237 = zext nneg i32 %204 to i64
  br label %210

._crit_edge187:                                   ; preds = %210, %201
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %207 = load i32, ptr @m, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = icmp slt i64 %indvars.iv.next240, %208
  br i1 %209, label %190, label %._crit_edge190.loopexit, !llvm.loop !25

210:                                              ; preds = %.lr.ph186, %210
  %indvars.iv234 = phi i64 [ 0, %.lr.ph186 ], [ %indvars.iv.next235, %210 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %211 = getelementptr inbounds [837 x %struct.Point], ptr @seq, i64 0, i64 %indvars.iv234
  %212 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %211, ptr noundef nonnull align 8 dereferenceable(16) %197)
  %213 = extractvalue { double, double } %212, 0
  store double %213, ptr %10, align 8
  %214 = extractvalue { double, double } %212, 1
  store double %214, ptr %21, align 8
  %215 = call noundef double @_ZNK5Point3lenEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  store double %215, ptr %9, align 8, !tbaa !12
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %217 = load double, ptr %216, align 8, !tbaa !12
  store double %217, ptr %206, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %indvars.iv.next235 = add nuw nsw i64 %indvars.iv234, 1
  %exitcond238.not = icmp eq i64 %indvars.iv.next235, %wide.trip.count237
  br i1 %exitcond238.not, label %._crit_edge187, label %210, !llvm.loop !26

218:                                              ; preds = %.lr.ph193, %._crit_edge190
  %219 = phi i32 [ %.pre251, %.lr.ph193 ], [ %.pre250, %._crit_edge190 ]
  %220 = sext i32 %219 to i64
  %221 = icmp slt i64 %indvars.iv.next243, %220
  br i1 %221, label %.lr.ph193, label %.preheader143, !llvm.loop !27

.lr.ph195:                                        ; preds = %.preheader143, %.lr.ph195
  %indvars.iv245 = phi i64 [ %indvars.iv.next246, %.lr.ph195 ], [ 0, %.preheader143 ]
  %222 = getelementptr inbounds [209 x double], ptr @ans, i64 0, i64 %indvars.iv245
  %223 = load double, ptr %222, align 8, !tbaa !12
  %224 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %223)
  %indvars.iv.next246 = add nuw nsw i64 %indvars.iv245, 1
  %225 = load i32, ptr @m, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = icmp slt i64 %indvars.iv.next246, %226
  br i1 %227, label %.lr.ph195, label %.loopexit, !llvm.loop !28

._crit_edge199:                                   ; preds = %.loopexit, %0
  ret i32 0
}

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12, i64 40, i64 8, !12}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}


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